[PATCH] D77475: GlobalISel: Combine G_UNMERGE_VALUES with G_TRUNC

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 16:52:54 PDT 2020


aemerson added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h:401
+
+        //  %1:_(<4 x s8>) = G_TRUNC %0(<4 x s32>)
+        //  %2:_(s8), %3:_(s8), %4:_(s8), %5:_(s8) = G_UNMERGE_VALUES %1
----------------
How do we make the decision that this the resulting output is "better" than the input? Can we check for input legality or something?


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

https://reviews.llvm.org/D77475





More information about the llvm-commits mailing list