[PATCH] D109201: [AMDGPU] Process any power of 2 in optimizeCompareInstr
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 3 11:32:45 PDT 2021
rampitec marked an inline comment as done.
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:8119
.add(*SrcOp)
- .addImm(0);
+ .addImm(Log2_64(Mask));
Def->eraseFromParent();
----------------
rampitec wrote:
> foad wrote:
> > Isn't this just `BitNo`?
> Yes, silly. Too much changes and copy-paste.
https://reviews.llvm.org/rGd0c064715c6c
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109201/new/
https://reviews.llvm.org/D109201
More information about the llvm-commits
mailing list