[PATCH] D52335: AArch64FastISel: Abort intrinsic selection if the left operand didn't select

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 21 08:49:12 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL342742: AArch64FastISel: Abort if we failed to select operand of intrinsic (authored by matze, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D52335?vs=166393&id=166490#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D52335

Files:
  llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp


Index: llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp
+++ llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp
@@ -3742,6 +3742,9 @@
               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));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52335.166490.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180921/0c84ea05/attachment.bin>


More information about the llvm-commits mailing list