This fixes https://bugs.llvm.org/show_bug.cgi?id=34714.
Patch by Marco Castelluccio
Differential D38224
Don't move llvm.localescape outside the entry block in the GCOV profiling pass marco-c on Sep 24 2017, 11:03 AM. Authored by
Details
Diff Detail Event TimelineComment Actions lgtm
|
This problematically assumes that all the allocas, dbg.declare, and localescape are all in a contiguous block, but that's a pre-existing issue that you don't need to fix. In practice, clang inserts localescape after allocas.