HomePhabricator

Add ExtractValue instruction to SimplifyCFG's ComputeSpeculationCost

Description

Add ExtractValue instruction to SimplifyCFG's ComputeSpeculationCost

Since ExtractValue is not included in ComputeSpeculationCost CFGs containing
ExtractValueInsts cannot be simplified. In particular this interacts with
InstCombineCompare's tendency to insert add.with.overflow intrinsics for
certain idiomatic math operations, preventing optimization.

This patch adds ExtractValue to the ComputeSpeculationCost. Test case included

rdar://14853450

Details

Committed
louisMay 9 2014, 10:02 AM
Parents
rL208433: Revert "temporary commit."
Branches
Unknown
Tags
Unknown

Event Timeline