summaryrefslogtreecommitdiff
path: root/utils/TableGen/DFAPacketizerEmitter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-12-06 16:14:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-12-06 16:14:29 +0000
commit88c09143b6af07ed7b16381885a03c4b10886f96 (patch)
treebf43148ac9de4f7f2cc7438f7093c8c00313c552 /utils/TableGen/DFAPacketizerEmitter.cpp
parent85dadecbd664f60f0c7e4fbb44f083d43d01cfb7 (diff)
downloadllvm-88c09143b6af07ed7b16381885a03c4b10886f96.tar.gz
llvm-88c09143b6af07ed7b16381885a03c4b10886f96.tar.bz2
llvm-88c09143b6af07ed7b16381885a03c4b10886f96.tar.xz
Simplify common predecessor finding.
- Walking over pred_begin/pred_end is an expensive operation. - PHINodes contain a value for each predecessor anyway. - While it may look like we used to save a few iterations with the set, be aware that getIncomingValueForBlock does a linear search on the values of the phi node. - Another -5% on ARMDisassembler.cpp (Release build). This was the last entry in the profile that was obviously wasting time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DFAPacketizerEmitter.cpp')
0 files changed, 0 insertions, 0 deletions