[llvm-commits] [llvm] r76356 - in /llvm/trunk/lib: CodeGen/SelectionDAG/SelectionDAG.cpp CodeGen/Spiller.h Target/X86/X86Subtarget.cpp
Daniel Dunbar
daniel at zuster.org
Sat Jul 18 18:38:39 PDT 2009
Author: ddunbar
Date: Sat Jul 18 20:38:38 2009
New Revision: 76356
URL: http://llvm.org/viewvc/llvm-project?rev=76356&view=rev
Log:
Fix some minor MSVC compiler warnings.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/lib/CodeGen/Spiller.h
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=76356&r1=76355&r2=76356&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Jul 18 20:38:38 2009
@@ -3905,11 +3905,11 @@
if (VTList.NumVTs == 1)
return getNode(Opcode, DL, VTList.VTs[0], Ops, NumOps);
+#if 0
switch (Opcode) {
// FIXME: figure out how to safely handle things like
// int foo(int x) { return 1 << (x & 255); }
// int bar() { return foo(256); }
-#if 0
case ISD::SRA_PARTS:
case ISD::SRL_PARTS:
case ISD::SHL_PARTS:
@@ -3925,8 +3925,8 @@
return getNode(Opcode, DL, VT, N1, N2, N3.getOperand(0));
}
break;
-#endif
}
+#endif
// Memoize the node unless it returns a flag.
SDNode *N;
Modified: llvm/trunk/lib/CodeGen/Spiller.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Spiller.h?rev=76356&r1=76355&r2=76356&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Spiller.h (original)
+++ llvm/trunk/lib/CodeGen/Spiller.h Sat Jul 18 20:38:38 2009
@@ -14,7 +14,7 @@
namespace llvm {
- struct LiveInterval;
+ class LiveInterval;
class LiveIntervals;
class LiveStacks;
class MachineFunction;
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=76356&r1=76355&r2=76356&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Sat Jul 18 20:38:38 2009
@@ -365,9 +365,7 @@
}
case 15:
if (HasSSE3) {
- switch (Model) {
- default: return "k8-sse3";
- }
+ return "k8-sse3";
} else {
switch (Model) {
case 1: return "opteron";
@@ -376,9 +374,7 @@
}
}
case 16:
- switch (Model) {
- default: return "amdfam10";
- }
+ return "amdfam10";
default:
return "generic";
}
More information about the llvm-commits
mailing list