From: Evan Cheng Date: Fri, 7 Aug 2009 22:36:37 +0000 (+0000) Subject: A big oops. Thumb1 default CC is a def of CPSR, not a use of CPSR. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fcc716352b893b45da2d6aa9d7afff8ba1ad0527;p=oota-llvm.git A big oops. Thumb1 default CC is a def of CPSR, not a use of CPSR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78418 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index 0b809bd7477..9062c72db4f 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -268,7 +268,7 @@ const MachineInstrBuilder &AddDefaultCC(const MachineInstrBuilder &MIB) { static inline const MachineInstrBuilder &AddDefaultT1CC(const MachineInstrBuilder &MIB) { - return MIB.addReg(ARM::CPSR); + return MIB.addReg(ARM::CPSR, getDefRegState(true)); } static inline