[PATCH] D85814: [X86][GlobalISel] Legalize G_ICMP results to s8.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 10:10:20 PDT 2020


craig.topper added a comment.

In D85814#2212932 <https://reviews.llvm.org/D85814#2212932>, @arsenm wrote:

> LGTM. Not sure I understand the question for 32 vs. 64 mode since it doesn't seem relevant for compares

I have two different getActionDefinitionsBuilder calls with 2 different type lists for G_ICMP right now. One called when !is64BitMode() and one called when is64BitMode(). I feel like I should move up to the constructor so they are closer together instead of being in separate setLegalizerInfo32bit and setLegalizerInfo64Bit functions. Then I'm wondering if there's a good way to use one getActionDefinitionsBuilder and conditionally control the type lists. And not just for G_ICMP. We're missing clampScalar and or other type legalization controls on a lot of operations right now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85814



More information about the llvm-commits mailing list