commit | 133ce871df8bc161928970216ff9b195b1fa3a14 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Jan 02 00:00:03 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Jan 02 00:00:03 2010 +0000 |
tree | 41664edfae4616e1a6820e6518b13a0a693d0e09 | |
parent | aac00392c38a7ce6b66fd8e39ae6bfe67b46dcf9 [diff] |
Teach codegen to handle: (X != null) | (Y != null) --> (X|Y) != 0 (X == null) & (Y == null) --> (X|Y) == 0 so that instcombine can stop doing this for pointers. This is part of PR3351, which is a case where instcombine doing this for pointers (inserting ptrtoint) is pessimizing code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92406 91177308-0d34-0410-b5e6-96231b3b80d8