diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-13 04:24:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-13 04:24:19 +0000 |
commit | 3df6a9f46fb51f08e3979cdd4c6f156b526c759c (patch) | |
tree | 6f0e0b915de275949f3ed8f46197c467995df538 /lib/Transforms/Utils/Mem2Reg.cpp | |
parent | b131bc420c36196b2af2ca412de9e6b910be1769 (diff) | |
download | external_llvm-3df6a9f46fb51f08e3979cdd4c6f156b526c759c.zip external_llvm-3df6a9f46fb51f08e3979cdd4c6f156b526c759c.tar.gz external_llvm-3df6a9f46fb51f08e3979cdd4c6f156b526c759c.tar.bz2 |
PHINode::getBasicBlockIndex is O(n) in the number of inputs
to a PHI, avoid it in the common case where the BB occurs
in the same index for multiple phis. This speeds up CGP on
an insane testcase from 8.35 to 3.58s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Mem2Reg.cpp')
0 files changed, 0 insertions, 0 deletions