================ @@ -172,6 +172,10 @@ template <typename DerivedT, typename TargetMachineT> class CodeGenPassBuilder { // LLVMTM ctor. See TargetMachine::setGlobalISel for example. if (Opt.EnableIPRA) TM.Options.EnableIPRA = *Opt.EnableIPRA; + else { + // If not explicitly specified, use target default. + TM.Options.EnableIPRA |= TM.useIPRA(); + } ---------------- arsenm wrote:
I think we should delete TargetMachine::useIPRA, and only use TargetOptions.EnableIPRA. That's how the target selection of globalisel and some of these other globals work already https://github.com/llvm/llvm-project/pull/138670 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits