[llvm] [DAGCombine] Propagate truncate to operands (PR #98666)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 16:24:12 PDT 2024


================
@@ -496,12 +496,20 @@ class NVPTXTargetLowering : public TargetLowering {
 
   bool isTruncateFree(Type *SrcTy, Type *DstTy) const override {
     // Truncating 64-bit to 32-bit is free in SASS.
-    if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy())
+    if (!(SrcTy->isIntegerTy() && DstTy->isIntegerTy()))
----------------
topperc wrote:

@justinfargnoli I think this comment has none been responded to?

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


More information about the llvm-commits mailing list