[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp X86ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 18 17:46:26 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.33 -> 1.34
X86ISelLowering.cpp updated: 1.49 -> 1.50
---
Log message:
A obvious typo
---
Diffs of the changes: (+3 -1)
X86ISelDAGToDAG.cpp | 2 ++
X86ISelLowering.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.33 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.34
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.33 Mon Jan 16 15:21:29 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed Jan 18 19:46:14 2006
@@ -215,6 +215,7 @@
/// the main function.
static void EmitSpecialCodeForMain(MachineBasicBlock *BB,
MachineFrameInfo *MFI) {
+#if 0
// Switch the FPU to 64-bit precision mode for better compatibility and speed.
int CWFrameIdx = MFI->CreateStackObject(2, 2);
addFrameReference(BuildMI(BB, X86::FNSTCW16m, 4), CWFrameIdx);
@@ -225,6 +226,7 @@
// Reload the modified control word now.
addFrameReference(BuildMI(BB, X86::FLDCW16m, 4), CWFrameIdx);
+#endif
}
void X86DAGToDAGISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.49 llvm/lib/Target/X86/X86ISelLowering.cpp:1.50
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.49 Wed Jan 18 03:26:46 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed Jan 18 19:46:14 2006
@@ -1457,7 +1457,7 @@
Tmp3 = DAG.getNode(ISD::SHL, MVT::i32, ShOpLo, ShAmt);
} else {
Tmp2 = DAG.getNode(X86ISD::SHRD, MVT::i32, ShOpLo, ShOpHi, ShAmt);
- Tmp3 = DAG.getNode(isSRA ? ISD::SRA : ISD::SHL, MVT::i32, ShOpHi, ShAmt);
+ Tmp3 = DAG.getNode(isSRA ? ISD::SRA : ISD::SRL, MVT::i32, ShOpHi, ShAmt);
}
SDOperand InFlag = DAG.getNode(X86ISD::TEST, MVT::Flag,
More information about the llvm-commits
mailing list