Skip to content

Commit ec7dbe2

Browse files
committed
merge exec check
1 parent 07fefca commit ec7dbe2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,14 +4767,10 @@ bool SIInstrInfo::physRegUsesConstantBus(const MachineOperand &RegOp) const {
47674767
// SGPRs use the constant bus
47684768

47694769
// FIXME: implicit registers that are not part of the MCInstrDesc's implicit
4770-
// physical register operands should also count.
4770+
// physical register operands should also count, except for exec.
47714771
if (RegOp.isImplicit())
47724772
return Reg == AMDGPU::VCC || Reg == AMDGPU::VCC_LO || Reg == AMDGPU::M0;
47734773

4774-
// Normal exec read does not count.
4775-
if ((Reg == AMDGPU::EXEC || Reg == AMDGPU::EXEC_LO) && RegOp.isImplicit())
4776-
return false;
4777-
47784774
// SGPRs use the constant bus
47794775
return AMDGPU::SReg_32RegClass.contains(Reg) ||
47804776
AMDGPU::SReg_64RegClass.contains(Reg);

0 commit comments

Comments
 (0)