[PATCH] D107330: [GlobalISel] Combine shr(shl x, c1), c2 to G_SBFX/G_UBFX

Dominik Montada via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 06:38:59 PDT 2021


gargaroff added a comment.

In D107330#2922162 <https://reviews.llvm.org/D107330#2922162>, @foad wrote:

> How does this new combine interact with matchAshrShlToSextInreg? If n==k, aren't they both trying to combine the same thing with different results?

In that case they would indeed try to combine the same thing. Looks like SextInreg combine has a higher precedence, as no other tests were affected. Should we skip this new combine if n==k?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107330



More information about the llvm-commits mailing list