Teach ValueTracking a new way to analyze PHI nodes, and and teach
authorDan Gohman <gohman@apple.com>
Thu, 21 May 2009 02:28:33 +0000 (02:28 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 21 May 2009 02:28:33 +0000 (02:28 +0000)
commit9004c8afd4bf7b3f27f4a4f8fd069379afa97c83
tree537c7db81d2ade0b3a765258ac8f71fd2900371b
parent4a4ea14f7d3872f07352eae14e62be48a5342fbc
Teach ValueTracking a new way to analyze PHI nodes, and and teach
Instcombine to be more aggressive about using SimplifyDemandedBits
on shift nodes. This allows a shift to be simplified to zero in the
included test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/lshr-phi.ll [new file with mode: 0644]