[PATCH] D131980: [Passes] Don't run tail-call-elim in -O1

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 11:08:00 PDT 2022


efriedma added a comment.

If you're specifically concerned about sibcall (call->jmp) optimization in the backend, it might be better to adjust the backend to avoid sibcalls at -O1, as opposed to messing with optimization passes.  (i.e. make -fno-optimize-sibling-calls the default at -O1.)  "tail" markings are useful for other purposes, like alias analysis, and I don't really want every optimization pass/frontend that might add "tail" markings to worry about the optimization level.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131980/new/

https://reviews.llvm.org/D131980



More information about the cfe-commits mailing list