summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CompilerWriterInfo.rst
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-05-31 06:43:25 +0000
committerAndrew Trick <atrick@apple.com>2013-05-31 06:43:25 +0000
commit5b245a16faf64177419f7fc76ae36309765436db (patch)
tree549cec1b44e21e605c25d7217300aeacf5a3cbdf /llvm/docs/CompilerWriterInfo.rst
parentce42bcc304b6a864e245fb147b504e8118b0dbee (diff)
downloadbcm5719-llvm-5b245a16faf64177419f7fc76ae36309765436db.tar.gz
bcm5719-llvm-5b245a16faf64177419f7fc76ae36309765436db.zip
Fix ScalarEvolution::ComputeExitLimitFromCond for 'or' conditions.
Fixes PR16130 - clang produces incorrect code with loop/expression at -O2. This is a 2+ year old bug that's now holding up the release. It's a case where we knowingly made aggressive assumptions about undefined behavior. These assumptions are wrong when SCEV is computing a subexpression that does not directly control the branch. With this fix, we avoid making assumptions in those cases but still optimize the common case. SCEV's trip count computation for exits controlled by 'or' expressions is now analagous to the trip count computation for loops with multiple exits. I had already fixed the multiple exit case to be conservative. llvm-svn: 182989
Diffstat (limited to 'llvm/docs/CompilerWriterInfo.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud