[PATCH] D118635: [GlobalISel] Combine: (G_*MULO x, 0) -> 0 + no carry out
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 31 11:30:20 PST 2022
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:4572-4574
+ if (!isLegalOrBeforeLegalizer({TargetOpcode::G_CONSTANT, {DstTy}}) ||
+ !isLegalOrBeforeLegalizer({TargetOpcode::G_CONSTANT, {CarryTy}}))
+ return false;
----------------
This query won't work correctly for vectors
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118635/new/
https://reviews.llvm.org/D118635
More information about the llvm-commits
mailing list