[PATCH] D100577: [RISCV] Optimize getVLENFactoredAmount function.

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 13:29:24 PDT 2021


rogfer01 added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:1394
+        .addReg(VL)
+        .addReg(ShiftAmount);
+    BuildMI(MBB, II, DL, TII->get(RISCV::SUB), VL)
----------------
I saw a test failing downstream due to this. This should be `addImm(ShiftAmount)` 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100577



More information about the llvm-commits mailing list