This is an archive of the discontinued LLVM Phabricator instance.

[PIR] Consult the ParallelRegionInfo before promoting allocas
Needs ReviewPublic

Authored by jdoerfert on Apr 2 2017, 7:38 AM.

Details

Summary

The ParallelRegionInfo offers a safe approximation to determine if an
alloca can be promoted. With this patch SROA and Mem2Reg will consult
the ParallelRegionInfo before promotion.

TODO: Not all users of "isAllocaPromotable" are updated. The
DominatorTree and ParallelRegionInfo should not be optional arguments to
that function.