[llvm] [NVPTX] Implemented istruncatefree and iszextfree alongwith test cases. (PR #115139)
    Justin Fargnoli via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Nov  6 10:43:51 PST 2024
    
    
  
================
@@ -506,6 +506,17 @@ class NVPTXTargetLowering : public TargetLowering {
            DstTy->getPrimitiveSizeInBits() == 32;
   }
 
+  bool isTruncateFree(EVT FromVT, EVT ToVT) const override {
+    if (!FromVT.isScalarInteger() || !ToVT.isScalarInteger()) {
+      return false;
+    }
----------------
justinfargnoli wrote:
Resolving as duplicate: https://github.com/llvm/llvm-project/pull/115139#discussion_r1831519214
https://github.com/llvm/llvm-project/pull/115139
    
    
More information about the llvm-commits
mailing list