[PATCH] D101005: [AArch64][GlobalISel] Simplify out of range rotate amount.
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 17:50:37 PDT 2021
aemerson added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:3924
+ auto Bits = Builder.buildConstant(AmtTy, Bitsize);
+ ConstantFoldingMIRBuilder CFMIB(MI);
+ Amt = CFMIB.buildURem(AmtTy, MI.getOperand(2).getReg(), Bits).getReg(0);
----------------
arsenm wrote:
> I think one off MIRBuilders should never be used
What do you suggest here instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101005/new/
https://reviews.llvm.org/D101005
More information about the llvm-commits
mailing list