[PATCH] D58521: [DAGCombiner] allow truncation of binops after legalization if desirable
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 13 16:57:56 PST 2020
arsenm added inline comments.
Herald added a subscriber: kerbowa.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:10842
case ISD::XOR:
- if (!LegalOperations && N0.hasOneUse() &&
+ if ((!LegalOperations || TLI.isTypeDesirableForOp(N0.getOpcode(), VT)) &&
(isConstantOrConstantVector(N0.getOperand(0), true) ||
----------------
Due to the lack of register bank awareness, the AMDGPU answer depends on whether the source node is divergent. This needs to pass the node itself, not just the opcode and type to answer properly
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58521/new/
https://reviews.llvm.org/D58521
More information about the llvm-commits
mailing list