OSDN Git Service

[MCA] Simplify the logic in method WriteState::addUser. NFCI
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 5 Feb 2019 11:36:55 +0000 (11:36 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 5 Feb 2019 11:36:55 +0000 (11:36 +0000)
commit42312852a6ccd3f91fc1748079f984f8ae4b3a0e
treea3d80fdfde0546b715d60fe7d57dde94497a0cfa
parent22ecef58b53515e075b41159591d966d1b0e51e3
[MCA] Simplify the logic in method WriteState::addUser. NFCI

In some cases, it is faster to just grow the set of 'Users' rather than
performing a llvm::find_if every time a new user is added to
the set. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MCA/Instruction.cpp