Effectively reverts r356956. The check for isFullCopy was excessive,
but there still needs to be a check that this is a copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358890
91177308-0d34-0410-b5e6-
96231b3b80d8
}
static bool isFullExecCopy(const MachineInstr& MI) {
- return MI.getOperand(1).getReg() == AMDGPU::EXEC;
+ if (MI.isCopy() && MI.getOperand(1).getReg() == AMDGPU::EXEC) {
+ assert(MI.isFullCopy());
+ return true;
+ }
+
+ return false;
}
static unsigned getOrNonExecReg(const MachineInstr &MI,