[PATCH] D74188: GlobalISel: Fix lowering of G_CTLZ/G_CTTZ

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 03:49:52 PST 2020


Petar.Avramovic accepted this revision.
Petar.Avramovic added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4113-4114
+      auto MIBShiftAmt = MIRBuilder.buildConstant(SrcTy, 1ULL << i);
       auto MIBOp =
-          MIRBuilder.buildOr(Ty, Op, MIRBuilder.buildLShr(Ty, Op, MIBShiftAmt));
+          MIRBuilder.buildOr(SrcTy, Op, MIRBuilder.buildLShr(SrcTy, Op, MIBShiftAmt));
       Op = MIBOp.getReg(0);
----------------
long line


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74188/new/

https://reviews.llvm.org/D74188





More information about the llvm-commits mailing list