diff options
author | Farzon Lotfi <farzonlotfi@microsoft.com> | 2025-07-24 14:17:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-24 17:17:47 -0400 |
commit | 581ba1cbf70bc5f89a095807c16f668a9b00ded9 (patch) | |
tree | 17ae0716d7b779162a5c3352fa943746591a420d /llvm/unittests/Support/DebugCounterTest.cpp | |
parent | 5e01797cd035cd1b86beb0ad3fb24277531dff66 (diff) | |
download | llvm-581ba1cbf70bc5f89a095807c16f668a9b00ded9.zip llvm-581ba1cbf70bc5f89a095807c16f668a9b00ded9.tar.gz llvm-581ba1cbf70bc5f89a095807c16f668a9b00ded9.tar.bz2 |
[DirectX] Fix crash in passes when building with LLVM_ENABLE_EXPENSIVE_CHECKS (#150483)
fixes #148681
fixes #148680
For the scalarizer pass we just need to indicate that scalarization took
place, I used the logic for knowing when to eraseFromParent to indicate
this.
For the DXILLegalizePass the new `legalizeScalarLoadStoreOnArrays` did
not use `ToRemove` which means our uses of !ToRemove.empty(); was no
longer correct. This meant each legalization now needed a means of
indicated if a change was maded.
For DXILResourceAccess.cpp the `Changed` bool was never set to true.
So removed it and replaced it with `!Resources.empty();` since we only
call `replaceAccess` if we have items in Resources.
Diffstat (limited to 'llvm/unittests/Support/DebugCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions