[llvm] [RISCV][GISEL] Do not initialize GlobalISel objects unless needed (PR #98233)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 16:26:04 PDT 2024


================
@@ -1330,7 +1330,7 @@ void RISCVInstructionSelector::emitFence(AtomicOrdering FenceOrdering,
 namespace llvm {
 InstructionSelector *
 createRISCVInstructionSelector(const RISCVTargetMachine &TM,
-                               RISCVSubtarget &Subtarget,
+                               const RISCVSubtarget &Subtarget,
----------------
michaelmaitland wrote:

I am stacking this patch on https://github.com/llvm/llvm-project/pull/98243.

https://github.com/llvm/llvm-project/pull/98233


More information about the llvm-commits mailing list