]> granicus.if.org Git - llvm/commitdiff
AMDGPU/GlobalISel: Fix assert on multi-return side effect intrinsics
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 13 Sep 2019 04:12:12 +0000 (04:12 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 13 Sep 2019 04:12:12 +0000 (04:12 +0000)
llvm.amdgcn.else hits this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371812 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

index c1c515ab4af90abaf39bf9c1bd1c45eb6958e839..23ca49b8a84c4ac35b740d4d6cd2e55aea53b377 100644 (file)
@@ -731,7 +731,7 @@ bool AMDGPUInstructionSelector::selectG_INTRINSIC_W_SIDE_EFFECTS(
   MachineFunction *MF = BB->getParent();
   MachineRegisterInfo &MRI = MF->getRegInfo();
 
-  unsigned IntrinsicID = I.getOperand(0).getIntrinsicID();
+  unsigned IntrinsicID = I.getIntrinsicID();
   switch (IntrinsicID) {
   case Intrinsic::amdgcn_exp: {
     int64_t Tgt = getConstant(MRI.getVRegDef(I.getOperand(1).getReg()));