[LLVMbugs] [Bug 6875] New: llc -print-after-all crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 19 09:42:27 PDT 2010


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

           Summary: llc -print-after-all crashes
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


pes ~$ cat fabs.ll 
; ModuleID = '/home/rdivacky/fabsf.c'
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"
target triple = "x86_64-unknown-freebsd8.0"

define float @foo(float %a) nounwind {
entry:
  %retval = alloca float, align 4                 ; <float*> [#uses=2]
  %a.addr = alloca float, align 4                 ; <float*> [#uses=2]
  %b = alloca float, align 4                      ; <float*> [#uses=2]
  store float %a, float* %a.addr
  %tmp = load float* %a.addr                      ; <float> [#uses=1]
  %call = call float @fabsf(float %tmp)           ; <float> [#uses=1]
  store float %call, float* %b
  %tmp1 = load float* %b                          ; <float> [#uses=1]
  store float %tmp1, float* %retval
  %0 = load float* %retval                        ; <float> [#uses=1]
  ret float %0
}

declare float @fabsf(float) nounwind readnone

pes ~$ llc -O2 fabs.ll && echo success
success

pes ~$ llc -O2 fabs.ll -print-after-all && echo success
Assertion failed: (!PMS.empty() && "Unable to find appropriate Pass Manager"),
function assignPassManager, file PassManager.cpp, line 1695.
Stack dump:
0.    Program arguments: llc -O2 fabs.ll -print-after-all 
Abort (core dumped)

the attached patch fixes that to some extent but it crashes on something else

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list