[llvm] [DAGCombine] Propagate truncate to operands (PR #98666)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 06:02:07 PDT 2024
================
@@ -2975,6 +2975,8 @@ class TargetLoweringBase {
return isTruncateFree(Val.getValueType(), VT2);
}
+ virtual bool shouldReduceRegisterPressure() const { return false; }
----------------
arsenm wrote:
The API is still bad and single use. This is essentially the same thing as aggressivelyPreferBuildVectorSources, and isNarrowingProfitable
https://github.com/llvm/llvm-project/pull/98666
More information about the llvm-commits
mailing list