OSDN Git Service

Fix the code that checked if a SCEVAddRecExpr Start contains an
authorDan Gohman <gohman@apple.com>
Fri, 13 Feb 2009 03:58:31 +0000 (03:58 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Feb 2009 03:58:31 +0000 (03:58 +0000)
commit9194e8b0c827c97f396b209c7f4eeb75759e7068
treec282871baf2c2da5cb036e3c626880bc461ab040
parenta200c8faf852f6caf386c592ec54c723d4b86b96
Fix the code that checked if a SCEVAddRecExpr Start contains an
addrec in a different loop to check the value being added to
the accumulated Start value, not the Start value before it has
the new value added to it. This prevents LSR from going crazy
on the included testcase. Dale, please review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/iv-users-in-other-loops.ll [new file with mode: 0644]