[PATCH] D134193: [RISCV] Manage the InQueue flag in insertvli correctly.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 14:28:44 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0cec96ab250e: [RISCV] Manage the InQueue flag in insertvli correctly. (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134193/new/
https://reviews.llvm.org/D134193
Files:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Index: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -1128,8 +1128,10 @@
// Add the successors to the work list so we can propagate the changed exit
// status.
for (MachineBasicBlock *S : MBB.successors())
- if (!BlockInfo[S->getNumber()].InQueue)
+ if (!BlockInfo[S->getNumber()].InQueue) {
+ BlockInfo[S->getNumber()].InQueue = true;
WorkList.push(S);
+ }
}
// If we weren't able to prove a vsetvli was directly unneeded, it might still
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134193.461362.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220919/195c9e6b/attachment.bin>
More information about the llvm-commits
mailing list