aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-08-29 17:09:21 +0000
committerCraig Topper <craig.topper@intel.com>2018-08-29 17:09:21 +0000
commit2bcb1eeee15f867439d937d7c68a297544765cd4 (patch)
tree47b1f7434e391d943741c2ae31a8dd3012a7cb62 /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
parent68a46d89669aa4443bc8d1a4fa98c11da77b9e35 (diff)
downloadllvm-2bcb1eeee15f867439d937d7c68a297544765cd4.zip
llvm-2bcb1eeee15f867439d937d7c68a297544765cd4.tar.gz
llvm-2bcb1eeee15f867439d937d7c68a297544765cd4.tar.bz2
[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 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions