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

Justin Fargnoli via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 19:58:51 PDT 2024


================
@@ -2975,6 +2975,8 @@ class TargetLoweringBase {
     return isTruncateFree(Val.getValueType(), VT2);
   }
 
+  virtual bool shouldReduceRegisterPressure() const { return false; }
----------------
justinfargnoli wrote:

> This is essentially the same thing as aggressivelyPreferBuildVectorSources, and isNarrowingProfitable

Thank you for pointing this out! I agree that `isNarrowingProfitable()` is the right way forward. 

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


More information about the llvm-commits mailing list