[llvm] 40b8b4a - [X86] Remove unnecessary custom lowering of v16i1/v32i1 ADD/SUB

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 03:46:24 PST 2021


Author: Simon Pilgrim
Date: 2021-02-26T11:46:11Z
New Revision: 40b8b4a466e3ea9ca438b776ce02c272a1b665da

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

LOG: [X86] Remove unnecessary custom lowering of v16i1/v32i1 ADD/SUB

These were missed in D97478

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 b9a3a245b24c..9aa76d988a20 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -1851,8 +1851,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     addRegisterClass(MVT::v64i1,  &X86::VK64RegClass);
 
     for (auto VT : { MVT::v32i1, MVT::v64i1 }) {
-      setOperationAction(ISD::ADD,                VT, Custom);
-      setOperationAction(ISD::SUB,                VT, Custom);
       setOperationAction(ISD::MUL,                VT, Custom);
       setOperationAction(ISD::VSELECT,            VT, Expand);
       setOperationAction(ISD::UADDSAT,            VT, Custom);


        


More information about the llvm-commits mailing list