Cache the fairly expensive last split point computation and provide a fast
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 04:20:27 +0000 (04:20 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 04:20:27 +0000 (04:20 +0000)
commit1a7744501a80351ce31fcecad42c8e35823bc081
tree4274e622c545eb18b6ab88bc09b3366abea58538
parentf05b1dcf870346094f8aaee8e387c92d3e47e98d
Cache the fairly expensive last split point computation and provide a fast
inlined path for the common case.

Most basic blocks don't contain a call that may throw, so the last split point
os simply the first terminator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128874 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/SplitKit.cpp
lib/CodeGen/SplitKit.h