diff options
author | Philip Reames <listmail@philipreames.com> | 2022-02-10 15:52:13 -0800 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2022-02-10 16:14:52 -0800 |
commit | 5ba115031dd773780cafc8ade0140883473b8cee (patch) | |
tree | 31c3270cafb249f9dd8a5e97b89aa0112bff04ac /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | ecbcefd693dd62f9242618b3cf838565e829cc7f (diff) | |
download | llvm-5ba115031dd773780cafc8ade0140883473b8cee.zip llvm-5ba115031dd773780cafc8ade0140883473b8cee.tar.gz llvm-5ba115031dd773780cafc8ade0140883473b8cee.tar.bz2 |
[PSE] Remove assumption that top level predicate is union from public interface [NFC*]
Note that this doesn't actually cause the top level predicate to become a non-union just yet.
The * above comes from a case in the LoopVectorizer where a predicate which is later proven no longer blocks vectorization due to a change from checking if predicates exists to whether the predicate is possibly false.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopVersioning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp index 049f49d..97f2952 100644 --- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp +++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp @@ -42,7 +42,7 @@ LoopVersioning::LoopVersioning(const LoopAccessInfo &LAI, LoopInfo *LI, DominatorTree *DT, ScalarEvolution *SE) : VersionedLoop(L), AliasChecks(Checks.begin(), Checks.end()), - Preds(LAI.getPSE().getUnionPredicate()), LAI(LAI), LI(LI), DT(DT), + Preds(LAI.getPSE().getPredicate()), LAI(LAI), LI(LI), DT(DT), SE(SE) { } @@ -276,7 +276,7 @@ bool runImpl(LoopInfo *LI, function_ref<const LoopAccessInfo &(Loop &)> GetLAA, const LoopAccessInfo &LAI = GetLAA(*L); if (!LAI.hasConvergentOp() && (LAI.getNumRuntimePointerChecks() || - !LAI.getPSE().getUnionPredicate().isAlwaysTrue())) { + !LAI.getPSE().getPredicate().isAlwaysTrue())) { LoopVersioning LVer(LAI, LAI.getRuntimePointerChecking()->getChecks(), L, LI, DT, SE); LVer.versionLoop(); |