]> granicus.if.org Git - llvm/commit
[windows] Don't inline fieldFromInstruction on Windows
authorStella Stamenova <stilis@microsoft.com>
Wed, 25 Jul 2018 17:33:20 +0000 (17:33 +0000)
committerStella Stamenova <stilis@microsoft.com>
Wed, 25 Jul 2018 17:33:20 +0000 (17:33 +0000)
commit4f30db4325f48ac0f50782d1777d41f873fa905f
treecbe1f156c7e06f8b7129c116a037597876bcc31a
parent8544cc867df0c8fcd291db03f3ac36902176a1b4
[windows] Don't inline fieldFromInstruction on Windows

Summary:
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.

Reviewers: asmith, labath, zturner

Subscribers: dblaikie, stella.stamenova, aprantl, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D49753

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337942 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/FixedLenDecoderEmitter.cpp