OSDN Git Service

Eliminate Intermediate::replace()
authorNicolas Capens <capn@google.com>
Wed, 27 Mar 2019 19:27:27 +0000 (15:27 -0400)
committerNicolas Capens <nicolascapens@google.com>
Mon, 1 Apr 2019 14:46:35 +0000 (14:46 +0000)
commit459453a96257402ed72bb89475409513f38b047f
treef575ee11091f5ce8a0fe425c9d13a2a3fa577726
parent0192d15debf07e7d4d365aef8a1f37a9bbfe22a4
Eliminate Intermediate::replace()

With Reactor variables now merely tracking the last assigned rvalue if
used within a single basic block, we can avoid the unsafe replace()
operation on SpirvShader::Intermediate.

This effectively reverts
https://swiftshader-review.googlesource.com/c/SwiftShader/+/27769

Bug b/129356087
Bug b/128527271

Change-Id: Ibfafc6960ac7e10b898ff8804752b928a7fc1988
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28109
Tested-by: Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
src/Pipeline/SpirvShader.cpp
src/Pipeline/SpirvShader.hpp