Skip to content
Commit 72c4dce8 authored by Chris Lattner's avatar Chris Lattner
Browse files

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.

llvm-svn: 96080
parent b0ebb65a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment