[llvm-bugs] [Bug 20425] SROA fails to promote seemingly simple alloca's to registers

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 15 04:49:50 PST 2018


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

Nikita Popov <nikita.ppv at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nikita.ppv at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Nikita Popov <nikita.ppv at gmail.com> ---
Nowadays the example produces (opt -sroa):

define float @foo(i1 %cond, float* %temp) {
entry:
  br i1 %cond, label %then, label %else

then:                                             ; preds = %entry
  br label %merge

else:                                             ; preds = %entry
  br label %merge

merge:                                            ; preds = %else, %then
  %arr.sroa.0.0 = phi float [ 1.000000e+00, %then ], [ 2.000000e+00, %else ]
  store float 0.000000e+00, float* %temp, align 4
  ret float %arr.sroa.0.0
}

So looks like this issue has been fixed.

-- 
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/20181215/d11f9792/attachment.html>


More information about the llvm-bugs mailing list