[llvm] [GlobalISel] Fold G_CTTZ if possible (PR #86224)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 21:15:02 PDT 2024
================
@@ -256,10 +256,16 @@ MachineInstrBuilder CSEMIRBuilder::buildInstr(unsigned Opc,
return buildFConstant(DstOps[0], *Cst);
break;
}
- case TargetOpcode::G_CTLZ: {
+ case TargetOpcode::G_CTLZ:
+ case TargetOpcode::G_CTTZ: {
----------------
arsenm wrote:
We should probably also handle the _ZERO_UNDEF variants
https://github.com/llvm/llvm-project/pull/86224
More information about the llvm-commits
mailing list