Commit 85d9d5d4 by Antonio Maiorano

Subzero: workaround bad codegen for Windows x86 at Om1 optimization level

See the referenced bug for the gory details. For now, this makes it so that Subzero's codegen doesn't crash even in the simple ReactorUnitTest cases. Bug: b/171222930 Change-Id: Ie22a91d7e3e4f3d940b7b9120067469ac4264020 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49388 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent ee18f390
......@@ -614,7 +614,8 @@ template <typename TraitsType> void TargetX86Base<TraitsType>::translateOm1() {
genTargetHelperCalls();
// Do not merge Alloca instructions, and lay out the stack.
static constexpr bool SortAndCombineAllocas = false;
// static constexpr bool SortAndCombineAllocas = false;
static constexpr bool SortAndCombineAllocas = true; // TODO(b/171222930): Fix Win32 bug when this is false
Func->processAllocas(SortAndCombineAllocas);
Func->dump("After Alloca processing");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment