commit | 779edb0717091fe9766b90ae980ad7801509ece6 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Apr 16 18:20:34 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 16 18:20:34 2025 -0700 |
tree | 8c1c00eed497f29716c9a370ceb905095d7e2454 | |
parent | b3fa9b820abb709fdd20c8d049a9228ddc61b0ac [diff] |
Range Analysis: Disallow the loop exit conditions that are always true This patch adds the early-return in function `GetBinaryToCompareLoopControlVariableInLoopBody()` when the input loop exit condition is always true for any loop control variable. e.g. ``` // `i` can be any u32 value instead of just [0u, 100u] for (var i = 100u; i >= 0u; i--) { ... } ``` Bug: 348701956 Test: tint_unittests Change-Id: I9cfbd31422cb97850c3a03113d6d0c9098b22343 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/236754 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.