[PATCH] D44917: Force SHF_MERGE optimizations with -r

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 08:06:23 PDT 2018


gbreynoo added a comment.

I disagree with forcing -O1 on a user when using -r. -O0 can be useful for debugging and we have tool features that rely on no optimisations. From the user perspective it seems arbitrary that these two flags don't work together, there should be a warning at least. This appears like a gap in implementation regarding combining SHF_MERGE sections by name and sh_entsize. I'm currently looking into implementing this.


https://reviews.llvm.org/D44917





More information about the llvm-commits mailing list