[PATCH] D95729: [GlobalISel] Add sext(constant) -> constant artifact combine.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 30 06:57:10 PST 2021
arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h:198
+ // Try to fold sext(g_constant) when the larger constant type is legal.
+ // Can't use MIPattern because we don't have a specific constant in mind.
+ auto *SrcMI = MRI.getVRegDef(SrcReg);
----------------
This seems like a fixable defect. You can check for any constant with the IR one
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95729/new/
https://reviews.llvm.org/D95729
More information about the llvm-commits
mailing list