llvm-project
f9c25651 - Reapply "[ControlHeightReduction] Drop lifetime annotations where necessary" (#160640)

Commit
88 days ago
Reapply "[ControlHeightReduction] Drop lifetime annotations where necessary" (#160640) Reapplies #159686 This reverts commit 4f33d7b7a9f39d733b7572f9afbf178bca8da127. The original landing of this patch had an issue where it would try and hoist allocas into the entry block that were in the entry block. This would end up actually moving them lower in the block potentially after users, resulting in invalid IR. This update fixes this by ensuring that we are only hoisting static allocas that have been sunk into a split basic block. A regression test has been added. Integration tested using a three stage build of clang with IRPGO enabled.
Parents
Loading