When checking whether the special handling for an addrec increment which
authorDan Gohman <gohman@apple.com>
Mon, 26 Apr 2010 21:46:36 +0000 (21:46 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Apr 2010 21:46:36 +0000 (21:46 +0000)
commit948c8a3e3d7349c67e5d9231d9e99b2692623630
treedf1112fb89185334963f2c3c48a45a1833371126
parent585c40129fdf375fe2d85dd1de6a57e716ddef43
When checking whether the special handling for an addrec increment which
doesn't dominate the header is needed, don't check whether the increment
expression has computable loop evolution. While the operands of an
addrec are required to be loop-invariant, they're not required to
dominate any part of the loop. This fixes PR6914.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102389 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/README.txt
lib/Analysis/ScalarEvolutionExpander.cpp
test/CodeGen/X86/lsr-delayed-fold.ll