summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-07-30 00:04:08 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-07-30 00:04:08 +0000
commit5ae90441c42c28d94ac4d3fe86e1f1cd08533e33 (patch)
tree3dd4dd9694936d6167dcec942dfa1d70dcfebee3 /clang/lib/CodeGen/CodeGenModule.cpp
parent8cf50450122270798d628df34dbd0146d5f4ab45 (diff)
downloadbcm5719-llvm-5ae90441c42c28d94ac4d3fe86e1f1cd08533e33.tar.gz
bcm5719-llvm-5ae90441c42c28d94ac4d3fe86e1f1cd08533e33.zip
Fix for PR2607: SCEV miscomputing the loop count for loops with an
SGT exit condition. Essentially, the correct way to flip an inequality in 2's complement is the not operator, not the negation operator. That said, the difference only affects cases involving INT_MIN. Also, enhance the pre-test search logic to be a bit smarter about inequalities flipped with a not operator, so it can eliminate the smax from the iteration count for simple loops. llvm-svn: 54184
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud