Skip to content

Commit 37e7c5f

Browse files
arsenmAnthony Tran
authored andcommitted
AMDGPU: Fix tracking subreg defs when folding through reg_sequence (llvm#140608)
We weren't fully respecting the type of a def of an immediate vs. the type at the use point. Refactor the folding logic to track the value to fold, as well as a subregister to apply to the underlying value. This is similar to how PeepholeOpt tracks subregisters (though only for pure copy-like instructions, no constants). Fixes llvm#139317
1 parent fd49147 commit 37e7c5f

File tree

4 files changed

+259
-186
lines changed

4 files changed

+259
-186
lines changed

0 commit comments

Comments
 (0)