[llvm] ffb3672 - [X86] Move CONCAT_VECTORS/INSERT_SUBVECTOR actions inside loop. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun May 24 02:59:50 PDT 2020


Author: Simon Pilgrim
Date: 2020-05-24T10:59:33+01:00
New Revision: ffb367217d6abc4c28840cbb6f09edb6ab7a4699

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

LOG: [X86] Move CONCAT_VECTORS/INSERT_SUBVECTOR actions inside loop. NFC.

CONCAT_VECTORS/INSERT_SUBVECTOR both are custom on v32i1/v64i1 like the other ops in the loop.

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 4fe5885b1aea..cfabeee8f40d 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -1798,12 +1798,10 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
       setOperationAction(ISD::SELECT,             VT, Custom);
       setOperationAction(ISD::BUILD_VECTOR,       VT, Custom);
       setOperationAction(ISD::VECTOR_SHUFFLE,     VT, Custom);
+      setOperationAction(ISD::CONCAT_VECTORS,     VT, Custom);
+      setOperationAction(ISD::INSERT_SUBVECTOR,   VT, Custom);
     }
 
-    setOperationAction(ISD::CONCAT_VECTORS,     MVT::v32i1, Custom);
-    setOperationAction(ISD::CONCAT_VECTORS,     MVT::v64i1, Custom);
-    setOperationAction(ISD::INSERT_SUBVECTOR,   MVT::v32i1, Custom);
-    setOperationAction(ISD::INSERT_SUBVECTOR,   MVT::v64i1, Custom);
     for (auto VT : { MVT::v16i1, MVT::v32i1 })
       setOperationAction(ISD::EXTRACT_SUBVECTOR, VT, Custom);
 


        


More information about the llvm-commits mailing list