[PATCH] D140004: [InstCombine] return the result of the GEP of PHI transformation early
Danila Malyutin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 04:06:25 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4a65e6783bee: [InstCombine] return the result of the GEP of PHI transformation early (authored by danilaml).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140004/new/
https://reviews.llvm.org/D140004
Files:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
Index: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
===================================================================
--- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -2420,8 +2420,7 @@
}
NewGEP->insertAt(GEP.getParent(), GEP.getParent()->getFirstInsertionPt());
- replaceOperand(GEP, 0, NewGEP);
- PtrOp = NewGEP;
+ return replaceOperand(GEP, 0, NewGEP);
}
if (auto *Src = dyn_cast<GEPOperator>(PtrOp))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140004.482803.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/56d8a139/attachment.bin>
More information about the llvm-commits
mailing list