[PATCH] D146775: [amdgpu] Fix broken error detection in LDS lowering
Jon Chesterfield via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 05:43:10 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG75c7019b7ea4: [amdgpu] Fix broken error detection in LDS lowering (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146775/new/
https://reviews.llvm.org/D146775
Files:
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
@@ -135,7 +135,7 @@
if (GV && !canElideModuleLDS(F)) {
unsigned Offset = allocateLDSGlobal(M->getDataLayout(), *GV, Align());
std::optional<uint32_t> Expect = getLDSAbsoluteAddress(*GV);
- if (!Expect || (Offset != Expect)) {
+ if (!Expect || (Offset != *Expect)) {
report_fatal_error("Inconsistent metadata on module LDS variable");
}
}
@@ -145,7 +145,7 @@
// before any other non-module LDS variables.
unsigned Offset = allocateLDSGlobal(M->getDataLayout(), *KV, Align());
std::optional<uint32_t> Expect = getLDSAbsoluteAddress(*KV);
- if (!Expect || (Offset != Expect)) {
+ if (!Expect || (Offset != *Expect)) {
report_fatal_error("Inconsistent metadata on kernel LDS variable");
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146775.509629.patch
Type: text/x-patch
Size: 1019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/6b381803/attachment.bin>
More information about the llvm-commits
mailing list