-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Labels
enhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing featuregood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributellvm:transforms
Description
Add a debug counter to selectively enable or disable SLSR transformations. The debug counter should wrap SLSR's invocation of rewriteCandidateWithBasis().
See DAGCombiner.cpp for an example use case for a debug counter:
SDValue DAGCombiner::combine(SDNode *N) {
if (!DebugCounter::shouldExecute(DAGCombineCounter))
return SDValue();
...
See 7a8dc3d for an example of a patch that adds support for a debug counter.
Don't feel the need to ask permission to work on this. Just give it a try!
Metadata
Metadata
Assignees
Labels
enhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing featuregood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributellvm:transforms