summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-03-27 09:40:51 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-03-27 09:40:51 +0000
commitb1ad66ff12991ac4ef464de2540199f784cbcffd (patch)
treec7b705cca950fc27a0a93c38c1dd027a01dce613 /llvm/test/CodeGen
parent90b7f4f72c3d7725cf8d782e271df1f0329c24d6 (diff)
downloadbcm5719-llvm-b1ad66ff12991ac4ef464de2540199f784cbcffd.tar.gz
bcm5719-llvm-b1ad66ff12991ac4ef464de2540199f784cbcffd.zip
[LoopUnroll][NFC] Remove redundant canPeel check
We check `canPeel` twice: when evaluating the number of iterations to be peeled and within the method `peelLoop` that performs peeling. This method is only executed if the calculated peel count is positive. Thus, the check in `peelLoop` can never fail. This patch replaces this check with an assert. Differential Revision: https://reviews.llvm.org/D44919 Reviewed By: fhahn llvm-svn: 328615
Diffstat (limited to 'llvm/test/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud