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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs