summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-09-21 15:47:41 +0000
committerMatthias Braun <matze@braunis.de>2018-09-21 15:47:41 +0000
commitc0ef786004d12f33f5199e46b3c8d2428db2e139 (patch)
tree78961c2e81e6d9c1bad0c9365b4fd5c90977c948 /llvm/lib
parentf898d1de4a256ad9f2702682bb28715d16503c7a (diff)
downloadbcm5719-llvm-c0ef786004d12f33f5199e46b3c8d2428db2e139.tar.gz
bcm5719-llvm-c0ef786004d12f33f5199e46b3c8d2428db2e139.zip
AArch64FastISel: Abort if we failed to select operand of intrinsic
rdar://44642447 Differential Revision: https://reviews.llvm.org/D52335 llvm-svn: 342742
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64FastISel.cpp b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
index af82eda52a0..e9e68ac1621 100644
--- a/llvm/lib/Target/AArch64/AArch64FastISel.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
@@ -3742,6 +3742,9 @@ bool AArch64FastISel::fastLowerIntrinsicCall(const IntrinsicInst *II) {
TII.get(TargetOpcode::COPY), ResultReg1).addReg(MulReg);
}
+ if (!ResultReg1)
+ return false;
+
ResultReg2 = fastEmitInst_rri(AArch64::CSINCWr, &AArch64::GPR32RegClass,
AArch64::WZR, /*IsKill=*/true, AArch64::WZR,
/*IsKill=*/true, getInvertedCondCode(CC));
OpenPOWER on IntegriCloud