[llvm] [NVPTX] Propagate truncate to operands (PR #98666)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 18:51:02 PDT 2024
================
@@ -15155,7 +15155,8 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
case ISD::OR:
case ISD::XOR:
if (!LegalOperations && N0.hasOneUse() &&
- (isConstantOrConstantVector(N0.getOperand(0), true) ||
+ (TLI.shouldReduceRegisterPressure() ||
+ isConstantOrConstantVector(N0.getOperand(0), true) ||
----------------
justinfargnoli wrote:
TODO: Add DAGCombiner implementation that VSCode deleted
https://github.com/llvm/llvm-project/pull/98666
More information about the llvm-commits
mailing list