Fix broken optimization disabled by a logic bug.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 22 Mar 2007 02:02:51 +0000 (02:02 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 22 Mar 2007 02:02:51 +0000 (02:02 +0000)
commit27e4da93b6924879aabf941bc6c71d4299e92229
treefcb50b51490d9cfba994ddd07684a3631991b8d6
parent67606125f64f0f90ca4f82c472c90355c656b4dc
Fix broken optimization disabled by a logic bug.

Analyze GEPs. If the indices are all zero, transfer whether the pointer is
known to be not null through the GEP.

Add a few more cases for xor and shift instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PredicateSimplifier.cpp