[PATCH] D50964: [Sparc] Use ANDN instead of AND if constant can be encoded more efficiently

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 06:12:58 PDT 2018


dcederman added a comment.

When I was testing the code I saw that it sometimes generated two versions of the same constant, one with the single SETHI with the complement form, and one with the standard SETHI/ORri pair. So I added the hasOneUse() part to prevent the case when a constant is encoded using three instructions instead of just one or two.


Repository:
  rL LLVM

https://reviews.llvm.org/D50964





More information about the llvm-commits mailing list