[PATCH] D154781: Revert "[TableGen] Use heap allocated arrays instead of vectors for TreePatternNode::Types and ResultPerm. NFC"
Tomas Matheson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 8 16:17:40 PDT 2023
tmatheson created this revision.
tmatheson added a reviewer: craig.topper.
Herald added a project: All.
tmatheson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
While working on DAGISelMatcherEmitter I've hit several runtime errors
caused by accessing TreePatternNode::Types out of bounds. These were
difficult to debug because the switch from std::vector to unique_ptr
removes bounds checking.
I don't think the slight reduction in class size is worth the extra
debugging and memory safety problems, so I suggest we revert this.
This reverts commit d34125a1a825208b592cfa8f5fc3566303d691a4 <https://reviews.llvm.org/rGd34125a1a825208b592cfa8f5fc3566303d691a4>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154781
Files:
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/DAGISelMatcherGen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154781.538396.patch
Type: text/x-patch
Size: 8175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230708/b7aee380/attachment.bin>
More information about the llvm-commits
mailing list