[llvm-commits] [llvm] r112420 - /llvm/trunk/include/llvm/Support/StandardPasses.h

Eli Friedman eli.friedman at gmail.com
Sun Aug 29 00:39:48 PDT 2010


On Sun, Aug 29, 2010 at 12:24 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Chris,
>
>> Stop explicitly scheduling domfrontier before the loop passes,
>> since none of them use it.  With this, we now only run
>> domfrontier (an N^2 analysis) 3 times at clang -O3: once for
>> "early" per-function cleanup, once at the start of the
>> per-function pipeline to support SRoA, and once late because
>> the EHPrepare class uses it.
>>
>> EHPrepare needs to stop using it, this is silly and wasteful.
>
> I never got around to changing it to use the SSA updator.  That
> said, I could easily change it to not promote the alloca to a
> register.  Since it's only used if an exception is raised, that
> wouldn't be a big loss.

Or, we could just rewrite mem2reg to use SSAUpdater :)

-Eli




More information about the llvm-commits mailing list