llvm.org GIT mirror llvm / 785d1f7
AMDGPU: Fix not checking for copy when looking at copy src 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 Matt Arsenault 5 months ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8787 }
8888
8989 static bool isFullExecCopy(const MachineInstr& MI) {
90 return MI.getOperand(1).getReg() == AMDGPU::EXEC;
90 if (MI.isCopy() && MI.getOperand(1).getReg() == AMDGPU::EXEC) {
91 assert(MI.isFullCopy());
92 return true;
93 }
94
95 return false;
9196 }
9297
9398 static unsigned getOrNonExecReg(const MachineInstr &MI,