[PATCH] D124308: [MachineScheduler] exclude INLINEASM from schedule when it would increase register pressure

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 19:00:07 PDT 2022


pengfei added a comment.

My understanding is the inline asm is in the transition zone between a "regular instruction" and "function call", because the content of inline asm is vary largely. It can be as simple as a "nop" or more complicated as modifing memory or even call a function.
I think setting scheduling barrier based on register pressure is compromised solution. It's also much like we prepare/preserve registers for function call when we use many registers in inline asm.
One more thought, we may also need to consider the clobber registers and memory?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124308



More information about the llvm-commits mailing list