diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 550e52c856f..343176d6925 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -931,12 +931,6 @@ bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N, return false; } -static bool isRegister0(SDOperand Op) { - if (RegisterSDNode *R = dyn_cast(Op)) - return (R->getReg() == 0); - return false; -} - /// getGlobalBaseReg - Output the instructions required to put the /// base address to use for accessing globals into a register. ///