[GlobalISel][Legalizer] add minScalarIf action
authorTies Stuij <ties@stuij.se>
Thu, 22 Dec 2022 15:32:34 +0000 (15:32 +0000)
committerTies Stuij <ties@stuij.se>
Thu, 22 Dec 2022 16:20:31 +0000 (16:20 +0000)
commit9faff9a09178eee3b79b669859df72d75de412c3
tree7469774ccf90cbb8bf0348c944788b38b56058dd
parentd1d3005c9fe6a1ded17d4cad373cae85c743e7f3
[GlobalISel][Legalizer] add minScalarIf action

Ensure scalar is at least as wide as type, but only if the specified condition
is met.

Reviewed By: paquette

Differential Revision: https://reviews.llvm.org/D140305
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp