summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2015-02-13 00:17:03 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2015-02-13 00:17:03 +0000
commit1b4801975136a4257c9317b837a3280833e13673 (patch)
treefb58eca083bb699b7e17c805e8545583e6b5e17d /llvm/lib/Target/Sparc
parent186ad60815aacdb0d367a4fcf6eacd68bfe73120 (diff)
downloadbcm5719-llvm-1b4801975136a4257c9317b837a3280833e13673.tar.gz
bcm5719-llvm-1b4801975136a4257c9317b837a3280833e13673.zip
Prevent division by 0.
When we try to estimate number of potentially removed instructions in loop unroller, we analyze first N iterations and then scale the computed number by TripCount/N. We should bail out early if N is 0. llvm-svn: 228988
Diffstat (limited to 'llvm/lib/Target/Sparc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud