From 39cfeecae5102a6544b01e720e718607be068a45 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 28 Apr 2010 02:25:18 +0000 Subject: [PATCH] Unbreak the build. Only form shld / shrd after legalization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102488 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index c38b678376e..3d87ffb735b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -9597,7 +9597,7 @@ static SDValue PerformShiftCombine(SDNode* N, SelectionDAG &DAG, static SDValue PerformOrCombine(SDNode *N, SelectionDAG &DAG, TargetLowering::DAGCombinerInfo &DCI, const X86Subtarget *Subtarget) { - if (!DCI.isBeforeLegalize()) + if (DCI.isBeforeLegalizeOps()) return SDValue(); EVT VT = N->getValueType(0); -- 2.34.1