[llvm] [DAGCombine] Propagate truncate to operands (PR #98666)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 21:56:22 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()))
----------------
arsenm wrote:
demorgan this condition (i.e. just remove this change altogether)
https://github.com/llvm/llvm-project/pull/98666
More information about the llvm-commits
mailing list