[PATCH] D109969: AMDGPU/GlobalISel: Add isel patterns for min3 and max3

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 20 03:07:40 PDT 2021


Petar.Avramovic added a comment.

Dag does this in dag-combiner. For GlobalISel combine would be in regbankcombiner (we need banks to not combine for uniform min and max) which runs just before isel. And since it is simple to match I did this in tablegen.
I will check if this works for sdag without regressions.


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

https://reviews.llvm.org/D109969



More information about the llvm-commits mailing list