diff options
author | Philip Reames <listmail@philipreames.com> | 2021-06-03 10:28:10 -0700 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2021-06-03 10:33:14 -0700 |
commit | 44d70d298acc872f37819efcb101334674a289e9 (patch) | |
tree | 5ca53c9cd7c85b89862c9b0c600841c5dc2d0ada /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 8c48d77cdfe5c286dc98b9bf06bd2939d00c4bb4 (diff) | |
download | llvm-44d70d298acc872f37819efcb101334674a289e9.zip llvm-44d70d298acc872f37819efcb101334674a289e9.tar.gz llvm-44d70d298acc872f37819efcb101334674a289e9.tar.bz2 |
[LoopUnroll] Eliminate PreserveOnlyFirst parameter [nfc]
This is a first step towards simplifying the transform interface to be less error prone. The basic idea is that querying SCEV is cheap (since it's cached) and we can just check for properties related to branch folding in the transform method instead of relying on the heuristic part to pass everything in correctly.
Differential Revision: https://reviews.llvm.org/D103584
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 5105c53..cc85fb6 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -987,7 +987,7 @@ bool llvm::UnrollRuntimeLoopRemainder( {/*Count*/ Count - 1, /*TripCount*/ Count - 1, /*Force*/ false, /*AllowRuntime*/ false, /*AllowExpensiveTripCount*/ false, /*PreserveCondBr*/ true, - /*PreserveOnlyFirst*/ false, /*TripMultiple*/ 1, + /*TripMultiple*/ 1, /*PeelCount*/ 0, /*UnrollRemainder*/ false, ForgetAllSCEV}, LI, SE, DT, AC, TTI, /*ORE*/ nullptr, PreserveLCSSA); } |