Skip to content

[Resource] Add tests for resource access in control flow#1374

Draft
inbelic wants to merge 5 commits into
llvm:mainfrom
inbelic:inbelic/resource-access
Draft

[Resource] Add tests for resource access in control flow#1374
inbelic wants to merge 5 commits into
llvm:mainfrom
inbelic:inbelic/resource-access

Conversation

@inbelic

@inbelic inbelic commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

This pr adds test coverage for resource access patterns that are potential optimizations in modern llvm. These optimizations can create illegal looking resource accesses in clang. DXC does not represent resource access through a regular store/load and will perform any such optimizations.

Optimizations considered:

  • GVN sink of load/store
  • SimplifyCFG sink of load/store
  • InstCombine phi sink of load
  • LICM loop invariant sink

These are considered for [non-]dynamic resources and resources that result in a gep of a struct member.

Assisted by: Claude Opus 4.8

@inbelic inbelic added test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. and removed test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. labels Jul 15, 2026
@inbelic
inbelic force-pushed the inbelic/resource-access branch from 8f6eb59 to 176e283 Compare July 15, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant