aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-04 04:17:06 +0000
committerChris Lattner <sabre@nondot.org>2004-02-04 04:17:06 +0000
commit44a6807f4f785ecdd96b3aa67dad056677131b98 (patch)
tree1bc3c0db2185317fbf0e496a446d3e9317fde6e0 /lib/CodeGen/MachineInstr.cpp
parentcb2b3e5005c09f24afeb0dab49ac8bc1967e491a (diff)
Optimize the case where we are inlining a function that contains only one basic block,
and that basic block ends with a return instruction. In this case, we can just splice the cloned "body" of the function directly into the source basic block, avoiding a lot of rearrangement and splitBasicBlock's linear scan over the split block. This speeds up the inliner on the testcase in PR209 from 2.3s to 1.7s, a 35% reduction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions