A big oops. Thumb1 default CC is a def of CPSR, not a use of CPSR.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 7 Aug 2009 22:36:37 +0000 (22:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 7 Aug 2009 22:36:37 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78418 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMBaseInstrInfo.h

index 0b809bd7477d389530c00cf8f546a59e06acde39..9062c72db4ffd128a74ee5c6c5eb0cca843bc5f3 100644 (file)
@@ -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