summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 287f59cc790..cfb019e62b0 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -36780,7 +36780,7 @@ static SDValue combineTruncatedArithmetic(SDNode *N, SelectionDAG &DAG,
};
// Don't combine if the operation has other uses.
- if (!N->isOnlyUserOf(Src.getNode()))
+ if (!Src.hasOneUse())
return SDValue();
// Only support vector truncation for now.
OpenPOWER on IntegriCloud