[PATCH] D34796: upporting -f(no)-reorder-functions flag, clang side change

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 19 04:34:49 PDT 2018


joerg added a comment.

Excuse me for bring this up so late, but why do we want to make any such promises? As in: fundamentally, LLVM IR doesn't have any order property on the module level. I have yet so seen reasonable code where the order of functions matters for anything but performance. I've seen a few things that required `-funit-at-a-time`, most noticable GCC's CRT implementation. But those are all major hacks. So under what premise is it useful to have to even pretend to honor source code order?


Repository:
  rC Clang

https://reviews.llvm.org/D34796





More information about the cfe-commits mailing list