[llvm-bugs] [Bug 47363] New: opt -sroa -S produces code that the ll parser doesn't accept
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 31 05:07:25 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47363
Bug ID: 47363
Summary: opt -sroa -S produces code that the ll parser doesn't
accept
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: mikael.holmen at ericsson.com
CC: llvm-bugs at lists.llvm.org
Created attachment 23906
--> https://bugs.llvm.org/attachment.cgi?id=23906&action=edit
bbi-36469_x86.ll reproducer
Reproduce with:
opt -sroa -o - bbi-36469_x86.ll -S | opt -S
Result:
/data/repo/master/llvm/build-all/bin/opt: <stdin>:11:73: error: expected value
token
call void @llvm.dbg.value(metadata <2 x { double, double }*> <{ double,
double }* inttoptr (i8 -1 to { double, double }*), { double, double }* inttoptr
(i8 -1 to { double, double }*)>, metadata !11, metadata
!DIExpression(DW_OP_LLVM_fragment, 8, 16)), !dbg !18
^
So the ll parser does not like the constant expressions in the dbg.value calls
that sroa produces.
If we instead run
opt -sroa -o - bbi-36469_x86.ll | opt -S
it ends succesfully.
--
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/20200831/3f16893f/attachment.html>
More information about the llvm-bugs
mailing list