A big oops. Thumb1 default CC is a def of CPSR, not a use of CPSR.
[oota-llvm.git] / 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