https://bugs.llvm.org/show_bug.cgi?id=27740

Florian Hahn <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]

--- Comment #29 from Florian Hahn <[email protected]> ---
I think this has been resolved in current trunk. BasicAA will now look through
phis and we also eliminate/forward loads across BBs.

Trunk generates https://godbolt.org/z/f4Eo3x



foo:                                    # @foo
        cmpwi   5, 1
        bltlr   0
        li 7, 8
        lwz 6, 4(3)
        clrldi  5, 5, 32
        addi 4, 4, -16
        lfs 0, 8(3)
        mtctr 5
        li 5, 4
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
        lwzu 8, 20(4)
        lfsx 1, 4, 5
        add 6, 6, 8
        stw 6, 4(3)
        xssubsp 0, 0, 1
        stfsx 0, 3, 7
        lwz 8, 8(4)
        stw 8, 12(3)
        bdnz .LBB0_2
        blr
        .long   0
        .quad   0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to