We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9dff4 commit d90e99aCopy full SHA for d90e99a
llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp
@@ -183,6 +183,13 @@ bool AMDGPULateCodeGenPrepare::runOnFunction(Function &F) {
183
for (auto &BB : F)
184
for (Instruction &I : make_early_inc_range(BB)) {
185
Changed |= visit(I);
186
+ }
187
+
188
+ // TODO -- combine the loops. visitLoad instruction deletes loads, which may
189
+ // cause use after free in optimizeLiveType. However, deferring the deletion
190
+ // of those may corrupt the logic in optimizeLiveType.
191
+ for (auto &BB : F)
192
+ for (Instruction &I : make_early_inc_range(BB)) {
193
Changed |= LRO.optimizeLiveType(&I);
194
}
195
0 commit comments