[llvm] [CodeGen][X86] Fix lowering of tailcalls when `-ms-hotpatch` is used (PR #77245)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 10:07:24 PST 2024


aganea wrote:

> > Also, I've removed the `X86::PUSH64r` optimization which cannot be applied anymore in this situation. Thus the change in the `patchable-prologue.ll` test. + at sanjoy
> 
> To keep the optimization, is there a (clean) way we could "tell" the `X86AsmPrinter` to ignore the emission of the next instruction?

I was under the impression that was initially a low hanging fruit optimization, but I'm not sure it's required ( @sanjoy ). I'll look into what you suggest if that's required.

https://github.com/llvm/llvm-project/pull/77245


More information about the llvm-commits mailing list