Skip to content

Commit 9ed8f93

Browse files
Pass the correct SDNode to isNarrowingProfitable in DAGCombiner
1 parent 47fadcd commit 9ed8f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15874,7 +15874,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
1587415874
break;
1587515875
}
1587615876

15877-
if (TLI.isNarrowingProfitable(N, SrcVT, VT)) {
15877+
if (TLI.isNarrowingProfitable(N0.getNode(), SrcVT, VT)) {
1587815878
switch (N0.getOpcode()) {
1587915879
case ISD::ADD:
1588015880
case ISD::SUB:

0 commit comments

Comments
 (0)