tryFoldLoad() is not meant to work on physical registers moreover
use_nodbg_instructions(reg) makes the compiler buggy when called with
physical reg
Fix for SWDEV-373493
Paths
| Differential D141895
[AMDGPU] Add missing physical register check in SIFoldOperands::tryFoldLoad ClosedPublic Authored by yassingh on Jan 16 2023, 11:07 PM.
Details Summary tryFoldLoad() is not meant to work on physical registers moreover Fix for SWDEV-373493
Diff Detail
Unit TestsFailed Event Timeline
This revision is now accepted and ready to land.Jan 20 2023, 5:57 AM This revision was landed with ongoing or failed builds.Jan 24 2023, 12:55 AM Closed by commit rG2a832d0f09f7: [AMDGPU] Add missing physical register check in SIFoldOperands::tryFoldLoad (authored by yassingh). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 491231 llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/fold-vgpr-phyreg.mir
llvm/test/CodeGen/AMDGPU/swdev373493.ll
|
If you use -run-pass=none, it will clean up and compact these register numbers for you