[llvm] r292894 - [X86] Remove unnecessary peakThroughBitcasts call that's already take care of by the ISD::isBuildVectorAllOnes check below.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 22:57:30 PST 2017


Author: ctopper
Date: Tue Jan 24 00:57:29 2017
New Revision: 292894

URL: http://llvm.org/viewvc/llvm-project?rev=292894&view=rev
Log:
[X86] Remove unnecessary peakThroughBitcasts call that's already take care of by the ISD::isBuildVectorAllOnes check below.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=292894&r1=292893&r2=292894&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Jan 24 00:57:29 2017
@@ -30624,8 +30624,6 @@ static SDValue combineANDXORWithAllOnesI
   SDValue N00 = N0->getOperand(0);
   SDValue N01 = N0->getOperand(1);
 
-  N01 = peekThroughBitcasts(N01);
-
   if (!ISD::isBuildVectorAllOnes(N01.getNode()))
     return SDValue();
 




More information about the llvm-commits mailing list