Handle "if ((x|y) != 0)" for ints like we do for bools. Fixes missed
authorNick Lewycky <nicholas@mxc.ca>
Sun, 22 Oct 2006 21:36:41 +0000 (21:36 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 22 Oct 2006 21:36:41 +0000 (21:36 +0000)
commit5062250f361999975c6f1ff306dc3a365dc32e1b
treef93c45f5386285e2d701857036e081ccc3584998
parent96f5362ff29bb91baf48caed92637c7bb2ffd8d1
Handle "if ((x|y) != 0)" for ints like we do for bools. Fixes missed
optimization opportunity pointed out by Chris Lattner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31118 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PredicateSimplifier.cpp
test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll [new file with mode: 0644]