summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-08-01 17:27:31 +0000
committerRenato Golin <renato.golin@linaro.org>2014-08-01 17:27:31 +0000
commit541d7e747a9db60bc9ec81f422b907a2a6ab4402 (patch)
tree59052c65d39c3ce3973d98c9f16062b0c43c9d63 /llvm
parent362f5de276192497f8a6c25c0f544ce86c18f1a2 (diff)
downloadbcm5719-llvm-541d7e747a9db60bc9ec81f422b907a2a6ab4402.tar.gz
bcm5719-llvm-541d7e747a9db60bc9ec81f422b907a2a6ab4402.zip
Add missing breaks to AArch64InstrInfo::isGPRCopy
llvm-svn: 214528
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 946c000cdcc..1273606699c 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -1058,12 +1058,14 @@ bool AArch64InstrInfo::isGPRCopy(const MachineInstr *MI) const {
MI->getOperand(3).getImm() == 0 && "invalid ORRrs operands");
return true;
}
+ break;
case AArch64::ADDXri: // add Xd, Xn, #0 (LSL #0)
if (MI->getOperand(2).getImm() == 0) {
assert(MI->getDesc().getNumOperands() == 4 &&
MI->getOperand(3).getImm() == 0 && "invalid ADDXri operands");
return true;
}
+ break;
}
return false;
}
@@ -1086,6 +1088,7 @@ bool AArch64InstrInfo::isFPRCopy(const MachineInstr *MI) const {
"invalid ORRv16i8 operands");
return true;
}
+ break;
}
return false;
}
OpenPOWER on IntegriCloud