[PATCH] D111508: [RISCV] Optimize immediate materialisation with BSETI/BCLRI

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 09:59:23 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp:205
+      while (Hi != 0) {
+        unsigned Bit = 31 - countLeadingZeros(Hi);
+        TmpSeq.push_back(RISCVMatInt::Inst(Opc, Bit + 32));
----------------
Can we build the bits from low to hi instead of hi to low?


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

https://reviews.llvm.org/D111508



More information about the llvm-commits mailing list