aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorSam Tebbs <samuel.tebbs@arm.com>2020-07-16 15:55:50 +0100
committerSam Tebbs <samuel.tebbs@arm.com>2020-07-17 11:47:08 +0100
commit6c348e4067b0826449caef2f77af2fb67c27040a (patch)
tree7a20b919c26d59a3371e8ffd598e15129cefa73b /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent760af7a0743278b6dd7782b177f4d6d086c726e0 (diff)
downloadllvm-6c348e4067b0826449caef2f77af2fb67c27040a.zip
llvm-6c348e4067b0826449caef2f77af2fb67c27040a.tar.gz
llvm-6c348e4067b0826449caef2f77af2fb67c27040a.tar.bz2
[HWLoops] Stop converting to a while loop when it would be unsafe to
There were cases where a do-while loop would be converted to a while loop before finding out that it would be unsafe to expand the SCEV in this situation and then bailing out of hardware loop conversion. This patch checks if it would be unsafe to expand the SCEV and if so stops converting the do-while into a while, allowing conversion to a hardware loop. Differential Revision: https://reviews.llvm.org/D83953
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions