diff options
author | Kai Nacke <kai.peter.nacke@ibm.com> | 2022-09-19 16:03:32 +0000 |
---|---|---|
committer | Kai Nacke <kai.peter.nacke@ibm.com> | 2022-09-20 20:55:02 +0000 |
commit | 34a809591bf97bd8832dbbabd7f0b7f7a3355783 (patch) | |
tree | 04df1f4b431dcbc993a544136e54d3f2310fdc52 /clang/lib/Serialization/ModuleManager.cpp | |
parent | b9a371f6d1509c4a29c9131e433dd2cf275dc6f1 (diff) | |
download | llvm-34a809591bf97bd8832dbbabd7f0b7f7a3355783.zip llvm-34a809591bf97bd8832dbbabd7f0b7f7a3355783.tar.gz llvm-34a809591bf97bd8832dbbabd7f0b7f7a3355783.tar.bz2 |
[GISel] TreeMatcher: always skip leaves if they don't care
In `GIMatchTreeOpcodePartitioner::applyForPartition()`, the loop over
the possible leaves skip a leaf if the instruction does not care
about the instruction.
When processing the referenced operands in the next loop the same
leaves need to be skipped.
Later, when these leaves are added to all partitions, the bit vector
must be resized first before the bit representing the leaf is set.
This fixes a crash in llvm-tblgen.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D134192
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions