[llvm-bugs] [Bug 38292] New: [windows] The VS compiler optimizes out fieldFromInstruction in Release builds when LLVM_ENABLE_ASSERTIONS is set to OFF
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 24 15:31:08 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38292
Bug ID: 38292
Summary: [windows] The VS compiler optimizes out
fieldFromInstruction in Release builds when
LLVM_ENABLE_ASSERTIONS is set to OFF
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: TableGen
Assignee: unassignedbugs at nondot.org
Reporter: stilis at microsoft.com
CC: llvm-bugs at lists.llvm.org
The VS compiler (on Windows) has a bug which results in fieldFromInstruction
being optimized out in some circumstances. This only happens in *release no
debug info* builds that have assertions *turned off* - in all other situations
the function is not inlined, so the functionality is correct.
All of the bots have assertions turned on, so this path is not regularly
tested.
The workaround is to not inline the function on Windows - if the bug is fixed
in a later release of the VS compiler, the noinline specification can be
removed.
The test that consistently reproduces this is Lanai v11.txt test.
This bug is to track the workaround in FixedLenDecoderEmitter.cpp (and it's
potential future removal).
--
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/20180724/af546552/attachment.html>
More information about the llvm-bugs
mailing list