re PR rtl-optimization/51040 (ICE: RTL check: access of elt 1 of 'not' with last...