[llvm-branch-commits] [llvm] 8b40324 - [RISCV] Initialize MergeBaseOffsetOptPass so it will work with print-before/after-all.

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 2 18:10:17 PST 2020


Author: Craig Topper
Date: 2020-12-02T18:04:22-08:00
New Revision: 8b403243a845dd0af2799caa830cea4a2c75f5fb

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

LOG: [RISCV] Initialize MergeBaseOffsetOptPass so it will work with print-before/after-all.

If its not in the PassRegistry it's not recognized as
a pass when we print before/after. Happened to notice while
I was working on a new pass.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
index 4dca1a88843e..5bd49bd7a7ff 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -37,6 +37,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTarget() {
   RegisterTargetMachine<RISCVTargetMachine> Y(getTheRISCV64Target());
   auto PR = PassRegistry::getPassRegistry();
   initializeGlobalISel(*PR);
+  initializeRISCVMergeBaseOffsetOptPass(*PR);
   initializeRISCVExpandPseudoPass(*PR);
 }
 


        


More information about the llvm-branch-commits mailing list