[PATCH] D113286: [WIP] [SeparateConstOffsetFromGEP] Use DisableSeparateConstOffsetFromGEP option with legacy PM
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 5 08:16:54 PDT 2021
djtodoro created this revision.
Herald added a subscriber: hiraditya.
djtodoro requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This just improves a bit the SeparateConstOffsetFromGEP Pass.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113286
Files:
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
Index: llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
+++ llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
@@ -1146,6 +1146,10 @@
bool SeparateConstOffsetFromGEPLegacyPass::runOnFunction(Function &F) {
if (skipFunction(F))
return false;
+
+ if (DisableSeparateConstOffsetFromGEP)
+ return false;
+
auto *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
auto *SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
auto *LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113286.385080.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211105/9ed7e0cc/attachment.bin>
More information about the llvm-commits
mailing list