[llvm-commits] More aggressive speculation in SimplifyCFG

Krzysztof Parzyszek kparzysz at codeaurora.org
Fri Jan 25 07:52:28 PST 2013


On 1/25/2013 2:32 AM, Andrew Trick wrote:
>
> Early passes, like SimplifyCFG, whose job is to canonicalize IR should
> try to avoid using heuristics driven by thresholds. No disagreement I'm
> sure.

This is an argument to have a version of the SimplifyCFG pass that would 
avoid target-specific transformations, and a version that would do 
whatever the target architecture prefers.


> But along the same lines, when we do need heuristics to avoid IR
> bloat, they should be derived purely from the IR, not TTI.

The patch I submitted does not cause code bloat.  The concern there was 
the speculation, which may or may not be beneficial on a particular target.


-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-commits mailing list