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
|  Differential  D141895  
[AMDGPU] Add missing physical register check in SIFoldOperands::tryFoldLoad Authored by yassingh on Jan 16 2023, 11:07 PM. 
Details tryFoldLoad() is not meant to work on physical registers moreover  Fix for SWDEV-373493 
Diff Detail 
 
Unit Tests Event Timeline
 
 | ||||||||||||
Don’t need -O3 and does need checks