[llvm-bugs] [Bug 16867] PromoteMemToReg crashes

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 24 02:12:04 PST 2019


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

Florian Hahn <florian_hahn at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |florian_hahn at apple.com
             Status|NEW                         |RESOLVED

--- Comment #5 from Florian Hahn <florian_hahn at apple.com> ---
Looks fixed, test cases do not crash anymore, and the second  test case
produces the code below with current master.

define void @test2(i1 %yt) {
bb:
  %tmp = alloca i8*, align 4
  br i1 %yt, label %bb51, label %bb3

bb51:                                             ; preds = %bb
  %tmp52 = bitcast i8** %tmp to %type*
  %tmp53 = bitcast %type* %tmp52 to i8**
  %tmp54 = load i8*, i8** %tmp53, align 4
  ret void

bb3:                                              ; preds = %bb
  %x = load i8*, i8** %tmp
  ret void
}

-- 
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/20190124/eb92ae8f/attachment.html>


More information about the llvm-bugs mailing list