[PATCH] D125819: [GISel] Add new combines for G_FMINNUM/MAXNUM and G_FMINIMUM/MAXIMUM
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 04:04:38 PDT 2022
foad added inline comments.
================
Comment at: llvm/include/llvm/Target/GlobalISel/Combine.td:894
+def combine_minmax_nan_matchinfo: GIDefMatchData<"FMinMaxNanMatchInfo">;
+def combine_minmax_nan: GICombineRule<
----------------
You should be able to use replaceSingleDefInstWithOperand instead of defining your own apply function. See the select_constant_cmp combine for an example of this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125819/new/
https://reviews.llvm.org/D125819
More information about the llvm-commits
mailing list