summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTim Renouf <tpr.llvm@botech.co.uk>2019-04-15 10:36:24 +0000
committerTim Renouf <tpr.llvm@botech.co.uk>2019-04-15 10:36:24 +0000
commit842be38162ec91d2a045ee360c46f94d1c09b7c4 (patch)
tree0e0ade2a13621327ccd846133db782e7113ed629 /llvm/lib/Target
parent7a112c44ff41df81edd0d1c7b3b9ebaa72e8698e (diff)
downloadbcm5719-llvm-842be38162ec91d2a045ee360c46f94d1c09b7c4.tar.gz
bcm5719-llvm-842be38162ec91d2a045ee360c46f94d1c09b7c4.zip
[AMDGPU] Fixed incorrect test in vcnd/vcmp optimization
This fixes a test I introduced in change D59191 (that added src0 and src1 modifiers to the v_cndmask instruction for disassembly purposes). Spotted by David Binderman in bug 41488. Differential Revision: https://reviews.llvm.org/D60652 Change-Id: I6ac95e66cd84e812ed3359ad57bcd0e13198ba0c llvm-svn: 358392
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp b/llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
index 9db1e5af015..7e843e83780 100644
--- a/llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
+++ b/llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
@@ -223,7 +223,7 @@ static unsigned optimizeVcndVcmpPair(MachineBasicBlock &MBB,
return AMDGPU::NoRegister;
if (TII->hasModifiersSet(*Sel, AMDGPU::OpName::src0_modifiers) ||
- TII->hasModifiersSet(*Sel, AMDGPU::OpName::src0_modifiers))
+ TII->hasModifiersSet(*Sel, AMDGPU::OpName::src1_modifiers))
return AMDGPU::NoRegister;
Op1 = TII->getNamedOperand(*Sel, AMDGPU::OpName::src0);
OpenPOWER on IntegriCloud