llvm-project/llvm/utils/TableGen/GlobalISel
Kai Nacke 34a809591b [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
2022-09-20 20:55:02 +00:00
..
CMakeLists.txt
CodeExpander.cpp Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
CodeExpander.h Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
CodeExpansions.h [GISel] Fix match tree emitter. 2022-09-18 00:00:15 +00:00
GIMatchDag.cpp [GlobalISel][TableGen] Qualify calls to llvm::format that have ::std:: types as parameters 2022-06-22 21:37:40 -07:00
GIMatchDag.h Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchDagEdge.cpp Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchDagEdge.h
GIMatchDagInstr.cpp
GIMatchDagInstr.h Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchDagOperands.cpp
GIMatchDagOperands.h
GIMatchDagPredicate.cpp Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchDagPredicate.h [llvm] Remove redundaunt virtual specifiers (NFC) 2022-07-24 21:50:35 -07:00
GIMatchDagPredicateDependencyEdge.cpp Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchDagPredicateDependencyEdge.h Cleanup includes for LLVMTableGenGlobalISel 2022-01-28 11:50:50 +01:00
GIMatchTree.cpp [GISel] TreeMatcher: always skip leaves if they don't care 2022-09-20 20:55:02 +00:00
GIMatchTree.h [llvm] Don't use Optional::hasValue (NFC) 2022-06-26 18:31:51 -07:00