[X86] Use hasOneUse instead of isOnlyUserOf. NFCI
authorCraig Topper <craig.topper@intel.com>
Fri, 17 Aug 2018 17:57:25 +0000 (17:57 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 17 Aug 2018 17:57:25 +0000 (17:57 +0000)
commit730890dbdb34fbe74f27696729907d210ffc7716
tree8a7d30673da786715eb206bc1690793a2b141593
parent2b93dfe0adeb83c7c025b0d6ac7b44156fa90088
[X86] Use hasOneUse instead of isOnlyUserOf. NFCI

isOnlyUserOf is a little heavier because it allows the node to be used multiple times by the other node. In this case we are looking at a truncate which only has one operand so we know it can only use it once. Thus hasOneUse is better.

llvm-svn: 340059
llvm/lib/Target/X86/X86ISelLowering.cpp