[PATCH] D81889: [gicombiner] Allow disable-rule option to disable all-except-...
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 15:30:04 PDT 2020
dsanders created this revision.
dsanders added reviewers: aditya_nandakumar, bogner, volkan, aemerson, paquette, arsenm.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Adds two features to the generated rule disable option:
- '*' - Disable all rules
- '!<foo>' - Re-enable rule(s)
- '!foo' - Enable rule named 'foo'
- '!5' - Enable rule five
- '!4-9' - Enable rule four to nine
- '!foo-bar' - Enable rules from 'foo' to (and including) 'bar'
This is intended to support unit testing of combine rules so
that you can do:
GeneratedCfg.setRuleDisabled("*")
GeneratedCfg.setRuleDisabled("!foo")
to ensure only a specific rule is in effect. The rule is still
required to be included in a combiner though
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81889
Files:
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-copy-prop-disabled.mir
llvm/utils/TableGen/GICombinerEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81889.270886.patch
Type: text/x-patch
Size: 4807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200615/b04267d8/attachment.bin>
More information about the llvm-commits
mailing list