llvm-project
3bcba726 - [AMDGPU] Ignore debug uses when choosing the i1 lane-mask lowering (#244887)

Commit
2 days ago
[AMDGPU] Ignore debug uses when choosing the i1 lane-mask lowering (#244887) SILowerI1Copies decides whether an i1 value defined in a loop is observed outside the loop from the blocks of all its uses, DBG_VALUEs included. A DBG_VALUE of a divergent i1 loop phi or copy in the loop exit block therefore selects the loop lowering, and -g adds lane-mask merge instructions (s_andn2/s_or) to the loop and uses extra SGPRs. Use use_nodbg_instructions in both places that build this bound, PhiLoweringHelper::mergeIncomingLaneMasks and Vreg1LoweringHelper::lowerCopiesToI1. The new test checks the same output with and without debugify for a loop phi and for a copy. Fixes llvm/llvm-project#242595
Author
Parents
Loading