[llvm] [NVPTX] Fix lowering of i1 SETCC (PR #115035)
    Alex MacLean via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov  7 13:14:58 PST 2024
    
    
  
================
@@ -668,6 +668,11 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
     setTruncStoreAction(VT, MVT::i1, Expand);
   }
 
+  setCondCodeAction({ISD::SETNE, ISD::SETEQ, ISD::SETUGE, ISD::SETULE,
+                     ISD::SETUGT, ISD::SETULT, ISD::SETGT, ISD::SETLT,
+                     ISD::SETGE, ISD::SETLE},
+                    MVT::i1, Custom);
----------------
AlexMaclean wrote:
The boolean rules I've added are not present in the generic legalizer, so I don't think so. I suppose I could add them there instead, but NVPTX would be the only target using them. 
https://github.com/llvm/llvm-project/pull/115035
    
    
More information about the llvm-commits
mailing list