diff options
author | Craig Topper <craig.topper@intel.com> | 2018-08-29 17:09:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-08-29 17:09:21 +0000 |
commit | 2bcb1eeee15f867439d937d7c68a297544765cd4 (patch) | |
tree | 47b1f7434e391d943741c2ae31a8dd3012a7cb62 /lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py | |
parent | 68a46d89669aa4443bc8d1a4fa98c11da77b9e35 (diff) | |
download | bcm5719-llvm-2bcb1eeee15f867439d937d7c68a297544765cd4.tar.gz bcm5719-llvm-2bcb1eeee15f867439d937d7c68a297544765cd4.zip |
[InstCombine] Replace two calls to getNumUses() with !hasNUsesOrMore
We were calling getNumUses to check for 1 or 2 uses. But getNumUses is linear in the number of uses. We can instead use !hasNUsesOrMore(3) which will stop the linear scan as soon as it determines there are at least 3 uses even if there are more.
llvm-svn: 340939
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions