diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-02 00:00:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-02 00:00:03 +0000 |
commit | 133ce871df8bc161928970216ff9b195b1fa3a14 (patch) | |
tree | 41664edfae4616e1a6820e6518b13a0a693d0e09 /examples/ModuleMaker/ModuleMaker.cpp | |
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
Diffstat (limited to 'examples/ModuleMaker/ModuleMaker.cpp')
0 files changed, 0 insertions, 0 deletions