[PATCH] D91416: [VE] LVLGen sets VL before vector insts

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 15:24:20 PST 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/VE/LVLGen.cpp:92
+      // Old VL is overwritten, so disable HasRegForVL.
+      if (MI->findRegisterDefOperandIdx(RegForVL, false, false, TRI) != -1) {
+        LLVM_DEBUG(dbgs() << RegName(RegForVL) << " is killed: ");
----------------
Does this handle the case of a call in the middle of a group of vector instructions? Such a call might modify VL. But I don't think the call will show VL as a def for findRegisterDefOperandIdx.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91416



More information about the llvm-commits mailing list