================
@@ -761,7 +761,8 @@ void 
AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
         if (EnableLowerModuleLDS)
           PM.addPass(AMDGPULowerModuleLDSPass(*this));
         if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0)
-          PM.addPass(AMDGPUAttributorPass(*this));
+          PM.addPass(
+              AMDGPUAttributorPass(*this, AMDGPUAttributorOptions{true}));
----------------
shiltian wrote:

I'd suggest to do:

```
AMDGPUAttributorOptions Options;
Options.IsClosedWorld = true;
```

And then pass the option.

https://github.com/llvm/llvm-project/pull/105845
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to