[llvm] [mlir] [OMPIRBuilder] Hoist alloca's to entry blocks of compiler-emitted GPU reduction functions (PR #181359)
Pranav Bhandarkar via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 16:29:08 PST 2026
================
@@ -4234,6 +4234,12 @@ Expected<Function *> OpenMPIRBuilder::createReductionFunction(
}
Builder.CreateRetVoid();
+
+ PostDominatorTree PostDomTree(*ReductionFunc);
----------------
bhandarkar-pranav wrote:
A comment for the need to hoist allocas from `BB` to the entry block might be useful here. else, someone will have to `git blame` this to find out.
https://github.com/llvm/llvm-project/pull/181359
More information about the llvm-commits
mailing list