summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InterferenceCache.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-10-15 13:15:05 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-10-15 13:15:05 +0000
commitd8b079708da672c99529b213cb3be7fea6a86830 (patch)
treee6f790f209f19efd92346bf7c076677bcb89d525 /llvm/lib/CodeGen/InterferenceCache.h
parent4b5e24df9a8559dec580c01439df6082e15ad277 (diff)
downloadbcm5719-llvm-d8b079708da672c99529b213cb3be7fea6a86830.tar.gz
bcm5719-llvm-d8b079708da672c99529b213cb3be7fea6a86830.zip
[SimplifyCFG] Use the error checking provided by getPrevNode.
BasicBlock::size is O(insts), making this loop O(blocks*insts), which can be really slow on generated code. getPrevNode already checks if we're at the beginning of the block and returns nullptr if so, just use that instead. No functionality change intended. llvm-svn: 284303
Diffstat (limited to 'llvm/lib/CodeGen/InterferenceCache.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud