[PATCH] D31319: [PPC] Eliminate redundant sign- and zero-extensions in PPC MI Peephole pass

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 01:54:29 PDT 2017


inouehrs added a comment.

@echristo For the motivating example in summary, EXTSW is generated while selecting instructions for the method call since ABI requires sign-extended parameters.
For method that returns a value, a sign-/zero-entension is also often (conservatively) generated for the return value to be compliant with ABI.


https://reviews.llvm.org/D31319





More information about the llvm-commits mailing list