llvm-project
4be4133a - AMDGPU: Do not try to commute instruction with same input register (#127562)

Commit
196 days ago
AMDGPU: Do not try to commute instruction with same input register (#127562) There's little point to trying to commute an instruction if the two operands are already the same. This avoids an assertion in a future patch, but this likely isn't the correct fix. The worklist management in SIFoldOperands is dodgy, and we should probably fix it to work like PeepholeOpt (i.e. stop looking at use lists, and fold from users). This is an extension of the already handled special case which it's trying to avoid folding an instruction which is already being folded.
Author
Parents
Loading