[PATCH] D46920: [MachineOutliner] Don't outline instructions that modify SP.

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 09:11:55 PDT 2018


paquette accepted this revision.
paquette added a comment.
This revision is now accepted and ready to land.

Thanks for finding this! LGTM.

(Since instructions like `add x0, sp, #8` are extremely common it would probably be good to catch them somehow. Could probably be done for MBBs without calls by just checking to see if a scratch register is available for the save/restore.)


Repository:
  rL LLVM

https://reviews.llvm.org/D46920





More information about the llvm-commits mailing list