================
@@ -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 don't understand how all of these version interact. I would expect the field 
here have been set from the TM value?

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

Reply via email to