[llvm-bugs] [Bug 36425] New: Bad machine code: Live segment doesn't end at a valid instruction
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 18 04:16:14 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36425
Bug ID: 36425
Summary: Bad machine code: Live segment doesn't end at a valid
instruction
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Register Allocator
Assignee: unassignedbugs at nondot.org
Reporter: paulsson at linux.vnet.ibm.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19890
--> https://bugs.llvm.org/attachment.cgi?id=19890&action=edit
reduced testcase
bin/llc -mtriple=s390x-linux-gnu -mcpu=z13 -O3 tc_liveseg.ll -o out.s
-disable-machine-dce -verify-machineinstrs
# After Simple Register Coalescing
********** INTERVALS **********
%0 [320r,320d:0) 0 at 320r weight:0.000000e+00
%1 [176r,224d:0) 0 at 176r weight:0.000000e+00
%3 [96r,176r:0) 0 at 96r weight:0.000000e+00
%12 [16r,32r:0) 0 at 16r weight:0.000000e+00
RegMasks:
********** MACHINEINSTRS **********
# Machine code for function main: NoPHIs, TracksLiveness
0B bb.0 (%ir-block.0):
successors: %bb.1(0x40000000), %bb.2(0x40000000); %bb.1(50.00%),
%bb.2(50.00%)
16B %12:grx32bit = LHIMux 0
32B CHIMux %12, 0, implicit-def $cc
48B BRC 14, 6, %bb.2, implicit killed $cc
64B J %bb.1
80B bb.1 (%ir-block.3):
; predecessors: %bb.0
96B %3:gr64bit = LGRL @g_47; mem:LD8[bitcast (<{ i8, i8, i8, i8, i8, i8,
i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64 }>* @g_47 to
i152*)](noalias=!2)(dereferenceable)
176B %1:gr64bit = SRLG %3, $noreg, 8
320B dead %0:gr64bit = LGHI 0
336B bb.2 (%ir-block.5):
; predecessors: %bb.0
# End machine code for function main.
*** Bad machine code: Live segment doesn't end at a valid instruction ***
- function: main
- basic block: %bb.1 (0x52de358) [80B;336B)
- liverange: [176r,224d:0) 0 at 176r
- v. register: %1
- segment: [176r,224d:0)
LLVM ERROR: Found 1 machine code errors.
--
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/20180218/0cd456c0/attachment-0001.html>
More information about the llvm-bugs
mailing list