-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Miscompilation when using LLVM feature LVI CFI #77607
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
do_errorshould always return1. But it doesn't if you enable the lvi-cfi feature. The miscompilation only happens with opt-level=0.Compare:
Here's a slightly reduced LLVM IR: bug.ll.txt
Difference in
llcoutput when adjusting the lvi-cfi feature attribute on#0: bug.diff.txt. I can't really see any obvious culprits.I want to file an LLVM bug as well but I don't have an account.
cc @raoulstrackx @mzohreva @scottconstable