diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-12-04 13:56:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-04 13:56:59 -0800 |
| commit | 4f69056d7c50fd19da3120866ae7e38d402d3d95 (patch) | |
| tree | af49af75a06cf8d3851e347f50f19eef3abb2e13 /tests/hlsl/dxsdk/Direct3D11TutorialsFX11/Tutorial13/Tutorial13.fx | |
| parent | 3e9622135e3c544f77e7a813ef193c393e5024af (diff) | |
Fix an SSA construction bug (#739)
Fixes #723
This fixes a case where the SSA construction pass wasn't dealing with the possibility of a phi node that it had provisionally introduced being replaced later. The result was invalid IR (caught with `-validate-ir`) that referenced an instruction nowhere in the IR module (because it was dropped).
The fix centralizes the code for dealing with phi nodes that have been replaced, so that the two different paths where variables get "read" during SSA construction can both use the same logic.
Diffstat (limited to 'tests/hlsl/dxsdk/Direct3D11TutorialsFX11/Tutorial13/Tutorial13.fx')
0 files changed, 0 insertions, 0 deletions
