From 05aa540984f2d0e5779a9feb32ebb7ec5002efd6 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Tue, 25 Jun 2013 19:49:41 +0400 Subject: [PATCH] Quick fix for LLVM 3.3 patch --- llvm_patches/r184575-x86-shift.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm_patches/r184575-x86-shift.patch b/llvm_patches/r184575-x86-shift.patch index b757f5d4..88c7e7bb 100644 --- a/llvm_patches/r184575-x86-shift.patch +++ b/llvm_patches/r184575-x86-shift.patch @@ -23,8 +23,8 @@ Index: lib/CodeGen/SelectionDAG/DAGCombiner.cpp AddToWorkList(SmallShift.getNode()); - return DAG.getNode(ISD::ANY_EXTEND, N->getDebugLoc(), VT, SmallShift); + APInt Mask = APInt::getAllOnesValue(VT.getSizeInBits()).lshr(ShiftAmt); -+ return DAG.getNode(ISD::AND, SDLoc(N), VT, -+ DAG.getNode(ISD::ANY_EXTEND, SDLoc(N), VT, SmallShift), ++ return DAG.getNode(ISD::AND, N->getDebugLoc(), VT, ++ DAG.getNode(ISD::ANY_EXTEND, N->getDebugLoc(), VT, SmallShift), + DAG.getConstant(Mask, VT)); } }