[PATCH] D92511: [RISCV] Remove RISCVMergeBaseOffsetOpt from the -O0 pass pipeline.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 09:58:52 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG92c0d5d95811: [RISCV] Remove RISCVMergeBaseOffsetOpt from the -O0 pass pipeline. (authored by craig.topper).
Herald added a subscriber: jrtc27.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92511/new/

https://reviews.llvm.org/D92511

Files:
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp


Index: llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+++ llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -183,5 +183,6 @@
 }
 
 void RISCVPassConfig::addPreRegAlloc() {
-  addPass(createRISCVMergeBaseOffsetOptPass());
+  if (TM->getOptLevel() != CodeGenOpt::None)
+    addPass(createRISCVMergeBaseOffsetOptPass());
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92511.309294.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/101fc097/attachment.bin>


More information about the llvm-commits mailing list