[LLVMdev] reg2mem pass
Andrew Lenharth
andrewl at lenharth.org
Thu Sep 6 08:01:20 PDT 2007
On 9/5/07, Seung Jae Lee <lee225 at uiuc.edu> wrote:
> Sorry for this long code.
> After -reg2mem, I could find any of PHIs weren't eliminated.
> I just wonder if this is normal.
The pass only ensures that the value coming into the phi is generated
by a load in the basic block for that path to the phi and that the phi
is the only use of that value. This was a compromise in the
difficulty of writing reg2mem and the difficulty in writing a pass
that depends on reg2mem.
Andrew
More information about the llvm-dev
mailing list