summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-18 17:40:44 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-18 17:40:44 +0000
commit21f2a43ab481cd05e91d18960ff5ca6bad4aa47f (patch)
treed14437a6407b330d86bf1a5ef22e2d6e90228dfb /clang/lib/Driver/ToolChain.cpp
parent12337e4e7df0b6a2b03548f12f5024758811e6b1 (diff)
downloadbcm5719-llvm-21f2a43ab481cd05e91d18960ff5ca6bad4aa47f.tar.gz
bcm5719-llvm-21f2a43ab481cd05e91d18960ff5ca6bad4aa47f.zip
Fix large count and negative constant count handling in PPCCTRLoops
This commit fixes an assert that would occur on loops with large constant counts (like looping for ((uint32_t) -1) iterations on PPC64). The existing code did not handle counts that it computed to be negative (asserting instead), but these can be created with valid inputs. This bug was discovered by bugpoint while I was attempting to isolate a completely different problem. Also, in writing test cases for the negative-count problem, I discovered that the ori/lsi handling was broken (there was a typo which caused the logic that was supposed to detect these pairs and extract the iteration count to always fail). This has now also been corrected (and is covered by one of the new test cases). llvm-svn: 177295
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud