[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:14 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:

Remove `{` and `}`

https://github.com/llvm/llvm-project/pull/115139


More information about the llvm-commits mailing list