From bd6306cdaa4a49344658bd026721b6532e103d09 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 24 Feb 2023 10:01:47 -0800 Subject: More control flow simplifications. (#2673) * More control flow and Phi param simplifications. * Fix. * Fix gcc error. * Fix. * More IR cleanup. * Fix bug in phi param dce + ifelse simplify. * Propagate and DCE side-effect-free functions. * Enhance CFG simplifcation to remove loops with no side effects. * Fix. * Fixes. * Fix tests. Add [__AlwaysFoldIntoUseSite] for rayPayloadLocation. * More cleanup. * Fixes. * Fix. --------- Co-authored-by: Yong He --- tests/diagnostics/interfaces/anyvalue-size-validation.slang | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/diagnostics/interfaces') diff --git a/tests/diagnostics/interfaces/anyvalue-size-validation.slang b/tests/diagnostics/interfaces/anyvalue-size-validation.slang index 6c33b72a9..1ebf7f4c3 100644 --- a/tests/diagnostics/interfaces/anyvalue-size-validation.slang +++ b/tests/diagnostics/interfaces/anyvalue-size-validation.slang @@ -21,9 +21,11 @@ T test(T s) return s; } +RWStructuredBuffer output; + [numthreads(4, 1, 1)] void main() { S s; - test(s); + output[0] = test(s).a; } \ No newline at end of file -- cgit v1.2.3