[LLVMbugs] [Bug 20115] New: llc fails with "lifetime.end", Linux, trunk, regression after 209788 revision.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 24 05:09:11 PDT 2014


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

            Bug ID: 20115
           Summary: llc fails with "lifetime.end", Linux, trunk,
                    regression after 209788 revision.
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: ili.filippov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

We can make small reproducer:

; ModuleID = 'a.bc'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind
define void @f_f() {
allocas:
  %RESULT = alloca i32
  %TEMP = alloca <8 x i32>
  %MAS = alloca <8 x i32>
  %POINT = alloca i32

  %0 = bitcast <8 x i32>* %TEMP to i8*
  call void @llvm.lifetime.start(i64 32, i8* %0)
  %MAS_VALUE = load <8 x i32>* %MAS
  %1 = bitcast <8 x i32>* %TEMP to i8*
  call void @llvm.lifetime.end(i64 32, i8* %1)

  %POINT_VALUE = load i32* %POINT
  %RESULT_VAL = extractelement <8 x i32> %MAS_VALUE, i32 %POINT_VALUE
  store i32 %RESULT_VAL, i32* %RESULT

  ret void
}

; Function Attrs: nounwind
declare void @llvm.lifetime.start(i64, i8* nocapture)

; Function Attrs: nounwind
declare void @llvm.lifetime.end(i64, i8* nocapture)



If we execute command: "llc a1.ll -mattr=+avx -O2" (llc from trunk)
we will have an error:

Operand not processed?
0x3220c48: ch = lifetime.end 0x3223200:1, 0x3220618 [ORD=10] [ID=1]

Everything is right before 209788 revision.

-- 
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/20140624/c2f72106/attachment.html>


More information about the llvm-bugs mailing list