Skip to content

Conversation

@tex3d
Copy link
Contributor

@tex3d tex3d commented Nov 20, 2025

This subtle bug can cause a failure to resolve a static resource in a corner case where DxilValueCache could replace an odd-indexed phi, and this is needed to resolve other phis to known values, but an indexing bug prevents the loop from ever visiting any phi nodes at odd-numbered indexes in the list.

This change also adds two IR-based pass tests for this code path, as there weren't any before.

This subtle bug can cause a failure to resolve a static resource in a
corner case where DxilValueCache could replace an odd-indexed phi, and this
is needed to resolve other phis to known values, but an indexing bug
prevents the loop from ever visiting any phi nodes at odd-numbered indexes
in the list.

This change also adds two IR-based pass tests for this code path, as there
weren't any before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant