[PATCH] [SimplifyCFG] threshold for folding branches with common destination
jingyue at google.com
Mon Sep 29 14:33:50 PDT 2014
I made the threshold a pass paramter in this patch. However, it doesn't look
pretty because there are several layers between createCFGSimplificationPass and
the actual use of this threshold (e.g. CFGSimplifyPass and SimplifyCFGOpt).
What are the benefits of having these pass parameters? I saw other passes such
as JumpThreading and LoopUnroll have such pass parameters too, but none of them
seem actually used. One way I can think of using that is target-specific code
can create these passes with a customized threshold, but in that case, I feel
TargetTransformInfo would be a better home.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20566 bytes
Desc: not available
More information about the llvm-commits