commit | 4baf8510375a745398e06d1a47450fcd31bbd38f | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Fri Aug 17 17:57:25 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Fri Aug 17 17:57:25 2018 +0000 |
tree | 416915c0bd5a19fc82187ebdb96255735ee75c25 | |
parent | 545c5cb20b5916ec9dfff9ee1409e6cb35383f8b [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340059 91177308-0d34-0410-b5e6-96231b3b80d8