[LLVMbugs] [Bug 864] LSR should emit expressions in proper order for CSE to happen

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 16 12:52:16 PDT 2014


Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |FIXED

--- Comment #1 from Reid Kleckner <rnk at google.com> ---
We appear to get this right at -O2:

$ clang --target=x86_64-linux -O2 t.c -S -o - -emit-llvm | grep %0
  %0 = load i32* %P3, align 4, !tbaa !1
  %add = add nsw i32 %0, %mul

%0 is the source variable 't', and we only have one add.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140916/08bb0971/attachment.html>

More information about the llvm-bugs mailing list