From c04e9d0dbfcdae56382f51cb4be19aa68894bd1b Mon Sep 17 00:00:00 2001 From: Geoff Berry Date: Thu, 14 Dec 2017 18:06:25 +0000 Subject: [PATCH] [ARM] Fix isRenamable flag setting on expanded VSTMDIA opcode. 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 | 4 +++- test/CodeGen/ARM/load_store_multiple.ll | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/lib/Target/ARM/ARMExpandPseudoInsts.cpp index 1c64e3d1a1c..f1def9822c2 100644 --- a/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -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++)); diff --git a/test/CodeGen/ARM/load_store_multiple.ll b/test/CodeGen/ARM/load_store_multiple.ll index 5ea1f8cf6ff..a636a8d12b2 100644 --- a/test/CodeGen/ARM/load_store_multiple.ll +++ b/test/CodeGen/ARM/load_store_multiple.ll @@ -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: -- 2.49.0