Fix strange logic in CollectIVUsers used to determine whether all uses are
authorEvan Cheng <evan.cheng@apple.com>
Fri, 20 Feb 2009 22:16:49 +0000 (22:16 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 20 Feb 2009 22:16:49 +0000 (22:16 +0000)
commitd33cec18a9c0d9382dbf1e2b629f3daef29226ee
treeb00d1e242063a58b57b040e118d1ff98930921b6
parentff518c86f7daf4e7abeabb3b03a5a9237c042da9
Fix strange logic in CollectIVUsers used to determine whether all uses are
addresses, part 1. This fixes an obvious logic bug. Previously if the only
in-loop use is a PHI, it would return AllUsesAreAddresses as true.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/loop-strength-reduce7.ll [new file with mode: 0644]