[PATCH] D139465: GISel/Combiner: maintain created instructions in a SetVector
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 12:41:07 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1598dc84bd61: GISel/Combiner: maintain created instructions in a SetVector (authored by nhaehnle).
Changed prior to commit:
https://reviews.llvm.org/D139465?vs=480625&id=481019#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139465/new/
https://reviews.llvm.org/D139465
Files:
llvm/lib/CodeGen/GlobalISel/Combiner.cpp
Index: llvm/lib/CodeGen/GlobalISel/Combiner.cpp
===================================================================
--- llvm/lib/CodeGen/GlobalISel/Combiner.cpp
+++ llvm/lib/CodeGen/GlobalISel/Combiner.cpp
@@ -12,6 +12,7 @@
#include "llvm/CodeGen/GlobalISel/Combiner.h"
#include "llvm/ADT/PostOrderIterator.h"
+#include "llvm/ADT/SetVector.h"
#include "llvm/CodeGen/GlobalISel/CSEInfo.h"
#include "llvm/CodeGen/GlobalISel/CSEMIRBuilder.h"
#include "llvm/CodeGen/GlobalISel/CombinerInfo.h"
@@ -52,7 +53,9 @@
WorkListTy &WorkList;
/// The instructions that have been created but we want to report once they
/// have their operands. This is only maintained if debug output is requested.
- SmallPtrSet<const MachineInstr *, 4> CreatedInstrs;
+#ifndef NDEBUG
+ SetVector<const MachineInstr *> CreatedInstrs;
+#endif
public:
WorkListMaintainer(WorkListTy &WorkList) : WorkList(WorkList) {}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139465.481019.patch
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/88c2fb3b/attachment.bin>
More information about the llvm-commits
mailing list