When folding addressing modes in CodeGenPrepare, attempt to look through PHI nodes
authorOwen Anderson <resistor@mac.com>
Fri, 19 Nov 2010 22:15:03 +0000 (22:15 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 19 Nov 2010 22:15:03 +0000 (22:15 +0000)
commitd2f4174fcc69a3328076734fa3256b31e5b7f734
treeb4b5219df4891aa42e6a69561bfdb4496cbbabac
parent2aeb6121a19aca7c317619f7ec37d7a770e9f03b
When folding addressing modes in CodeGenPrepare, attempt to look through PHI nodes
if all the operands of the PHI are equivalent.  This allows CodeGenPrepare to undo
unprofitable PRE transforms.

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