[PATCH] D134192: [GISel] TreeMatcher: always skip leaves if they don't care
Kai Nacke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 09:23:25 PDT 2022
Kai created this revision.
Kai added reviewers: aemerson, dsanders, arsenm.
Herald added a project: All.
Kai requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
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.
This fixes a crash in llvm-tblgen.
https://reviews.llvm.org/D134192
Files:
llvm/test/TableGen/GICombinerEmitter/match-tree.td
llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134192.461229.patch
Type: text/x-patch
Size: 4944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220919/a005d7c7/attachment.bin>
More information about the llvm-commits
mailing list