mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 08:16:05 +00:00
AMDGPU: Fix counting debug instructions in execz skip threshold
This commit is contained in:
parent
2f0047aad1
commit
b953155b49
@ -320,6 +320,9 @@ bool SIPreEmitPeephole::mustRetainExeczBranch(
|
||||
if (MI.isConditionalBranch())
|
||||
return true;
|
||||
|
||||
if (MI.isMetaInstruction())
|
||||
continue;
|
||||
|
||||
if (TII->hasUnwantedEffectsWhenEXECEmpty(MI))
|
||||
return true;
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
---
|
||||
|
||||
# FIXME: RemoveShortExecBranches should not count dbg_value instructions.
|
||||
# CHECK-LABEL: name: no_count_dbg_value
|
||||
# CHECK: $vgpr1 = V_MOV_B32_e32 7, implicit $exec
|
||||
# CHECK-NOT: S_CBRANCH_EXECZ
|
||||
@ -18,6 +17,11 @@ body: |
|
||||
successors: %bb.2
|
||||
$vgpr0 = V_MOV_B32_e32 0, implicit $exec
|
||||
DBG_VALUE
|
||||
DBG_VALUE
|
||||
DBG_VALUE
|
||||
DBG_VALUE
|
||||
DBG_VALUE
|
||||
DBG_VALUE
|
||||
|
||||
bb.2:
|
||||
$vgpr0 = V_MOV_B32_e32 1, implicit $exec
|
||||
|
Loading…
x
Reference in New Issue
Block a user