llvm-project
51cdebf3 - [AMDGPU] SIOptimizeExecMaskingPreRA: Fix crash on exec copy fold into INLINEASM (#172481)

Commit
37 days ago
[AMDGPU] SIOptimizeExecMaskingPreRA: Fix crash on exec copy fold into INLINEASM (#172481) The optimization crashed attempting to fix a fold of a COPY $exec instruction into a use in an INLINEASM instruction because it attempts to call isOperandLegal which crashes since the index is out of the MCInstrDesc's operands array bounds. Change SIOptimizeExecMaskingPreRA to skip the optimization if the operand index is out of bounds. --------- Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
Author
Parents
Loading