[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.
This commit is contained in:
parent
c4fb7720ce
commit
8b403243a8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue