[PATCH] D132939: [Peephole] rewrite INSERT_SUBREG to SUBREG_TO_REG if upper bits zero

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 3 17:29:00 PDT 2022


Allen added a comment.

In D132939#3759126 <https://reviews.llvm.org/D132939#3759126>, @efriedma wrote:

> This transform should be in target-specific code so we can ensure the safety.  (Or it could use a target hook if it really needs to be in TwoAddressInstructionPass for some reason.)

Thanks @efriedma very much for your comment. And I move this transform in the peephole (target-specific code).


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

https://reviews.llvm.org/D132939



More information about the llvm-commits mailing list