Skip to content
Commit 3e9e8bd2 authored by Chris Lattner's avatar Chris Lattner
Browse files

Implement a refinement to the mem2reg algorithm for cases where an alloca

has a single def.  In this case, look for uses that are dominated by the def
and attempt to rewrite them to directly use the stored value.

This speeds up mem2reg on these values and reduces the number of phi nodes
inserted.  This should address PR665.

llvm-svn: 24411
parent 31dc3827
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