[llvm-branch-commits] [llvm] 8eedd18 - [X86] Remove unnecessary bitcast. NFC.

Simon Pilgrim via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 4 01:49:52 PST 2020


Author: Simon Pilgrim
Date: 2020-12-04T09:44:57Z
New Revision: 8eedd18fcb9d5d3cad887bd0d2c165ab3a47347b

URL: https://github.com/llvm/llvm-project/commit/8eedd18fcb9d5d3cad887bd0d2c165ab3a47347b
DIFF: https://github.com/llvm/llvm-project/commit/8eedd18fcb9d5d3cad887bd0d2c165ab3a47347b.diff

LOG: [X86] Remove unnecessary bitcast. NFC.

The X86ISD::SUBV_BROADCAST node is already VT

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 0b6b5614db6f..13a2d8bf7735 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -8793,8 +8793,7 @@ static SDValue lowerBuildVectorAsBroadcast(BuildVectorSDNode *BVOp,
               MVT::getVectorVT(CVT, NumElm), dl, DAG.getEntryNode(), VCP,
               MachinePointerInfo::getConstantPool(DAG.getMachineFunction()),
               Alignment);
-          SDValue Brdcst = DAG.getNode(X86ISD::SUBV_BROADCAST, dl, VT, Ld);
-          return DAG.getBitcast(VT, Brdcst);
+          return DAG.getNode(X86ISD::SUBV_BROADCAST, dl, VT, Ld);
         }
       }
     }


        


More information about the llvm-branch-commits mailing list