mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
AMDGPU: Fix counting debug instructions in execz skip threshold
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user