[PATCH] D110813: [LoopRotate] Forget SCEV values in RewriteUsesOfClonedInstructions
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 04:21:43 PDT 2021
bjope added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/LoopRotationUtils.cpp:837
AssumptionCache *AC, DominatorTree *DT,
ScalarEvolution *SE, MemorySSAUpdater *MSSAU,
const SimplifyQuery &SQ, bool RotationOnly = true,
----------------
I think that at least SE could be made a reference instead of a pointer here. At least loop-rotate always fetches ScalarEvolution nowadays (but probably also DominatorTree).
So we could get rid of the conditional checks if SE is non-null.
Maybe I'll fix that in a separate patch later. Unless someone beats me to it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110813/new/
https://reviews.llvm.org/D110813
More information about the llvm-commits
mailing list