[LLVMdev] Redundant Add Operation in Code Generation?

Eli Friedman eli.friedman at gmail.com
Wed Oct 17 15:32:40 PDT 2012


On Wed, Oct 17, 2012 at 2:03 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Eli,
>
>   Actually, I stil see this issue without codegenprepare being used. I'm
> also compiling with -o3.
>
>   So I'm still not sure why I'm seeing this issue?

Hmm... maybe it's LSR doing it?

Anyway, the general idea is that there are only a few passes which
perform redundant instruction elimination: GVN, EarlyCSE, and
InstCombine (IIRC).

-Eli



More information about the llvm-dev mailing list