]> granicus.if.org Git - llvm/commitdiff
[ARM] Fix isRenamable flag setting on expanded VSTMDIA opcode.
authorGeoff Berry <gberry@codeaurora.org>
Thu, 14 Dec 2017 18:06:25 +0000 (18:06 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Thu, 14 Dec 2017 18:06:25 +0000 (18:06 +0000)
Fixes expensive-check ARM buildbot failure.

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

lib/Target/ARM/ARMExpandPseudoInsts.cpp
test/CodeGen/ARM/load_store_multiple.ll

index 1c64e3d1a1c7ba2d6444abb21a98f6dc428453c4..f1def9822c24d68d6d65c7a46a92cf4e4eec205f 100644 (file)
@@ -1469,7 +1469,9 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
       unsigned SrcReg = MI.getOperand(OpIdx++).getReg();
 
       // Copy the destination register.
-      MIB.add(MI.getOperand(OpIdx++));
+      MachineOperand Dst(MI.getOperand(OpIdx++));
+      Dst.setIsRenamable(false);
+      MIB.add(Dst);
 
       // Copy the predicate operands.
       MIB.add(MI.getOperand(OpIdx++));
index 5ea1f8cf6ffa335f8dc0fdb9faed704d03d6dcdb..a636a8d12b223abdef21c235faf949baea4f3244 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -mtriple=armv7-eabi -mattr=+neon %s -o - | FileCheck %s --check-prefix=CHECK-LE
-; RUN: llc -mtriple=armv7eb-eabi -mattr=+neon %s -o - | FileCheck %s --check-prefix=CHECK-BE
+; RUN: llc -verify-machineinstrs -mtriple=armv7-eabi -mattr=+neon %s -o - | FileCheck %s --check-prefix=CHECK-LE
+; RUN: llc -verify-machineinstrs -mtriple=armv7eb-eabi -mattr=+neon %s -o - | FileCheck %s --check-prefix=CHECK-BE
 
 define void @ld_st_vec_i8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
 ;CHECK-LE-LABEL: ld_st_vec_i8: