[PATCH] D73204: [NFCI][LoopUnrollAndJam] Minor changes.
Whitney Tsang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 16:55:56 PST 2020
Whitney marked an inline comment as done.
Whitney added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp:384
for (Instruction &I : *NewBlock) {
- ::remapInstruction(&I, LastValueMap);
if (auto *II = dyn_cast<IntrinsicInst>(&I))
----------------
dmgreen wrote:
> Why does the unroller have it's own version of this function, and how is it different to RemapInstruction?
>
> If this is no longer needs to be shared with the unroller, it can be removed from UnrollLoop.h and made static in LoopUnroll.cpp.
Looks to me that RemapInstruction is a superset of ::remapInstruction. I tried locally changing remapInstruction to call `RemapInstruction(I, VMap, RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);` and all lit tests passed. Should be safe to remove ::remapInstruction. Should I do that in this patch?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73204/new/
https://reviews.llvm.org/D73204
More information about the llvm-commits
mailing list