[ConstantFold] Add test for invalid non-inbounds gep icmp fold
authorNikita Popov <npopov@redhat.com>
Thu, 6 Jan 2022 08:55:56 +0000 (09:55 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 6 Jan 2022 08:59:40 +0000 (09:59 +0100)
commit37c9171764ee1a1ce34cd5cf984fee818cd617fb
tree2a72b28b463acabe6422d0a500ce1c43d5f12a8a
parent18e08fbd01bfc1efeccbdb0278660487c20eccba
[ConstantFold] Add test for invalid non-inbounds gep icmp fold

The gep evaluated to null in this case, and as such is not ne null.
llvm/test/Transforms/InstSimplify/ConstProp/icmp-global.ll