[llvm] 188f15d - [ARM] Remove dead lowering code. NFC

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 02:08:05 PST 2021


Author: David Green
Date: 2021-02-22T10:07:53Z
New Revision: 188f15d973101649f7172e353f85727b41f2ffa8

URL: https://github.com/llvm/llvm-project/commit/188f15d973101649f7172e353f85727b41f2ffa8
DIFF: https://github.com/llvm/llvm-project/commit/188f15d973101649f7172e353f85727b41f2ffa8.diff

LOG: [ARM] Remove dead lowering code. NFC

Remove the unnecessary code from 21a4faab60c34b8a8c4d09, left over from
a different way of lowering.

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 0da62aea3fad..007daa01b1d0 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -3104,16 +3104,6 @@ bool ARMDAGToDAGISel::tryInsertVectorElt(SDNode *N) {
   // The inserted values are not extracted - if they are f16 then insert them
   // directly using a VINS.
   if (VT == MVT::v8f16) {
-    auto F32RC = CurDAG->getTargetConstant(ARM::SPRRegClassID, dl, MVT::i32);
-    SDNode *Val1Copy = CurDAG->getMachineNode(TargetOpcode::COPY_TO_REGCLASS,
-                                              dl, MVT::f32, Val1, F32RC);
-    SDNode *Val2Copy = CurDAG->getMachineNode(TargetOpcode::COPY_TO_REGCLASS,
-                                              dl, MVT::f32, Val2, F32RC);
-    auto MQPRRC = CurDAG->getTargetConstant(ARM::MQPRRegClassID, dl, MVT::i32);
-    SDNode *VecCopy =
-        CurDAG->getMachineNode(TargetOpcode::COPY_TO_REGCLASS, dl, MVT::v4f32,
-                               Ins2.getOperand(0), MQPRRC);
-
     SDNode *VINS = CurDAG->getMachineNode(ARM::VINSH, dl, MVT::f32, Val2, Val1);
     SDValue NewIns =
         CurDAG->getTargetInsertSubreg(ARM::ssub_0 + Lane2 / 2, dl, MVT::v4f32,


        


More information about the llvm-commits mailing list