[PATCH] D68438: [gicombiner] Add the run-time rule disable option

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 18:02:14 PDT 2019


dsanders created this revision.
dsanders added reviewers: volkan, bogner.
Herald added subscribers: Petar.Avramovic, hiraditya.
Herald added a project: LLVM.

Each generated helper can be configured to generate an option that disables
rules in that helper. This can be used to bisect rulesets.

The disable bits are stored in a SparseVector as this is very cheap for the
common case where nothing is disabled. It gets more expensive the more rules
are disabled but you're generally doing that for debug purposes where
performance is less of a concern.

Depends on D68426 <https://reviews.llvm.org/D68426>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68438

Files:
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/Combiner.cpp
  llvm/lib/Target/AArch64/AArch64Combine.td
  llvm/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-copy-prop-disabled.mir
  llvm/utils/TableGen/GICombinerEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68438.223127.patch
Type: text/x-patch
Size: 10717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191004/4d5d41d7/attachment.bin>


More information about the llvm-commits mailing list