[InstCombine] Precommit tests for D105088 (NFC)
authorKrishna Kariya <krishna17060@iiitd.ac.in>
Tue, 13 Jul 2021 18:33:30 +0000 (20:33 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 13 Jul 2021 18:35:04 +0000 (20:35 +0200)
commite56b2e57067652710418973e11bb9b118f37b177
tree1d09d2a64d398f20dba2a3ef7b58242386c3a7d1
parent308d38128333af65455e8343a620b40a099e896a
[InstCombine] Precommit tests for D105088 (NFC)

Add tests for D105088, as well as an option to disable the
(generally) unsound inttoptr of ptrtoint optimization.

Differential Revision: https://reviews.llvm.org/D105771
llvm/lib/IR/Instructions.cpp
llvm/test/Transforms/InstCombine/ptr-int-ptr-icmp.ll [new file with mode: 0644]