[LLVMbugs] [Bug 16687] New: Cannot promote non-promotable alloca!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 23 18:18:23 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16687

            Bug ID: 16687
           Summary: Cannot promote non-promotable alloca!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

; ModuleID = 'b.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define void @test() {
entry:
  %sminval.i = alloca i64, align 8
  unreachable

if.then2.i125:                                    ; preds = %if.then.i124
  %sminval.0.cast.i = bitcast i64* %sminval.i to float*
  br label %if.end.i128

if.else.i:                                        ; preds = %if.then.i124
  %sminval.4.raw_cast.i = bitcast i64* %sminval.i to i8*
  %sminval.4.raw_idx.i = getelementptr inbounds i8* %sminval.4.raw_cast.i, i64
4
  %sminval.4.cast.i = bitcast i8* %sminval.4.raw_idx.i to float*
  br label %if.end.i128

if.end.i128:                                      ; preds = %if.else.i,
%if.then2.i125
  %min.0.in.i = phi float* [ %sminval.0.cast.i, %if.then2.i125 ], [
%sminval.4.cast.i, %if.else.i ]
  %min.0.i126 = load float* %min.0.in.i, align 4
  unreachable
}

-- 
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/20130724/0e79a4ac/attachment.html>


More information about the llvm-bugs mailing list