[llvm] ee6267c - [RISCV] Remove Gather/Scatter Opt from the O0 pipeline.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 17 11:06:33 PDT 2022


Author: Craig Topper
Date: 2022-07-17T10:58:33-07:00
New Revision: ee6267c4431353f114889e84c9fa1accd890de34

URL: https://github.com/llvm/llvm-project/commit/ee6267c4431353f114889e84c9fa1accd890de34
DIFF: https://github.com/llvm/llvm-project/commit/ee6267c4431353f114889e84c9fa1accd890de34.diff

LOG: [RISCV] Remove Gather/Scatter Opt from the O0 pipeline.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
    llvm/test/CodeGen/RISCV/O0-pipeline.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
index f30f67657f9b4..b71b0e6f60c14 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -189,7 +189,8 @@ TargetPassConfig *RISCVTargetMachine::createPassConfig(PassManagerBase &PM) {
 void RISCVPassConfig::addIRPasses() {
   addPass(createAtomicExpandPass());
 
-  addPass(createRISCVGatherScatterLoweringPass());
+  if (getOptLevel() != CodeGenOpt::None)
+    addPass(createRISCVGatherScatterLoweringPass());
 
   TargetPassConfig::addIRPasses();
 }

diff  --git a/llvm/test/CodeGen/RISCV/O0-pipeline.ll b/llvm/test/CodeGen/RISCV/O0-pipeline.ll
index bc77a8eea079b..534f2e092a327 100644
--- a/llvm/test/CodeGen/RISCV/O0-pipeline.ll
+++ b/llvm/test/CodeGen/RISCV/O0-pipeline.ll
@@ -20,9 +20,6 @@
 ; CHECK-NEXT:     Pre-ISel Intrinsic Lowering
 ; CHECK-NEXT:     FunctionPass Manager
 ; CHECK-NEXT:       Expand Atomic instructions
-; CHECK-NEXT:       Dominator Tree Construction
-; CHECK-NEXT:       Natural Loop Information
-; CHECK-NEXT:       RISCV gather/scatter lowering
 ; CHECK-NEXT:       Module Verifier
 ; CHECK-NEXT:       Lower Garbage Collection Instructions
 ; CHECK-NEXT:       Shadow Stack GC Lowering


        


More information about the llvm-commits mailing list