Move allocas converted from __kmpc_alloc_shared to entry block. This patch fixes an issue that occurs when inlined functions lead to conversions to allocs from __kmpc_alloc_shared calls to not be moved to the entry block of the function hence failing to be passed as arguments to other non-inlined functions.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
6371 | Why do the check above if we overwrite the result anyway? |
Comment Actions
We still need the size check, see the change suggestion.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
6364–6366 |
Comment Actions
FWIW, "then move it to the entry block." is not really true, see my comment suggestion.
Comment Actions
Yes already made the changes locally just haven't updated the diff! Thanks a lot for pointing it out!