summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-29 04:40:19 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-29 04:40:19 +0000
commit66f0b163607c454e868785e9ef8e5b03c0fcda8e (patch)
tree894bcc63d25ecd41f5b18ea3df67343fc14a97ec /llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
parent1aab75ab49597a97dbecd1a34fc9db1b9f75932c (diff)
downloadbcm5719-llvm-66f0b163607c454e868785e9ef8e5b03c0fcda8e.tar.gz
bcm5719-llvm-66f0b163607c454e868785e9ef8e5b03c0fcda8e.zip
[LPM] Fix PR18642, a pretty nasty bug in IndVars that "never mattered"
because of the inside-out run of LoopSimplify in the LoopPassManager and the fact that LoopSimplify couldn't be "preserved" across two independent LoopPassManagers. Anyways, in that case, IndVars wasn't correctly preserving an LCSSA PHI node because it thought it was rewriting (via SCEV) the incoming value to a loop invariant value. While it may well be invariant for the current loop, it may be rewritten in terms of an enclosing loop's values. This in and of itself is fine, as the LCSSA PHI node in the enclosing loop for the inner loop value we're rewriting will have its own LCSSA PHI node if used outside of the enclosing loop. With me so far? Well, the current loop and the enclosing loop may share an exiting block and exit block, and when they do they also share LCSSA PHI nodes. In this case, its not valid to RAUW through the LCSSA PHI node. Expected crazy test included. llvm-svn: 200372
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud