llvm-project
6ed1ae68 - [AArch64][PAC] Reset `killed` operand flag in custom inserter of PAC pseudo (#158699)

Commit
96 days ago
[AArch64][PAC] Reset `killed` operand flag in custom inserter of PAC pseudo (#158699) If custom inserter changes the `AddrDisc` operand of `AArch64::PAC` pseudo instruction, conservatively reset its `killed` flag. Keeping this flag without checking if it is still legal may result in code of the form %disc = MOVKXi %addr(tied-def 0), 1234, 48 %signed = PAC %ptr(tied-def 0), 2, 0, killed %disc # %addr is used past this point and %disc is not being turned into %signed = PAC %ptr(tied-def 0), 2, 1234, killed %addr # %addr is used past this point, but the operand of # the above instruction has killed flag
Author
Parents
Loading