dan sinclair ed0649dec4 [IR] Fix setting of if merge target
When emitting the if true/false blocks we attempt to set the merge
target if the start block hasn't branched. This isn't right, as if the
block branched to other control flow, then that isn't the end of the
flow chain for that branch. We have to look at the current branch
target, and, if it exists, branch that to the if merge block.

Bug: tint:1718
Change-Id: Ifcafc4dd12c805efbee9d1dbcbc42c6add8f06a9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107861
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-11-01 18:17:21 +00:00
..
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-11-01 17:09:39 +00:00
2022-11-01 17:09:39 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-11-01 14:34:08 +00:00
2022-11-01 14:34:08 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00
2022-10-28 01:22:58 +00:00