Issue 71594
Summary AMDGPU OpenMP offload errors with O0 and save-temps
Labels new issue
Assignees
Reporter markdewing
    Use the reproducer from #71593.

Add "-v --save-temps" to the compile line.  Get an error:
```
a.out.amdgcn-amd-amdhsa.gfx900.s:100638:27: error: invalid operand (violates constant bus restrictions)
        v_writelane_b32 v7, s24, m0
```

Add "-O0" (and no "--save-temps") and get an assertion failure:
```
clang-linker-wrapper: llvm-project/llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp:154: virtual bool llvm::AMDGPUResourceUsageAnalysis::runOnModule(llvm::Module&): Assertion `MF && "function must have been generated already"' failed.
```

Full outputs from the errors attached

[out_amd_O0.txt](https://github.com/llvm/llvm-project/files/13289882/out_amd_O0.txt)
[out_amd_save_temps.txt](https://github.com/llvm/llvm-project/files/13289883/out_amd_save_temps.txt)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to