This is an archive of the discontinued LLVM Phabricator instance.

Fix calculation of scalarization overhead in BasicTTIImpl::getCmpSelInstrCost
Needs ReviewPublic

Authored by jordy.potman.lists on Jul 8 2016, 2:15 AM.

Details

Reviewers
mkuper
Summary

The arguments to the getScalarizationOverhead call in BasicTTIImpl::getCmpSelInstrCost are inconsistent with the comment above it. The comment seems to be correct so change the arguments to match the comment.

Diff Detail

Repository
rL LLVM

Event Timeline

jordy.potman.lists retitled this revision from to Fix calculation of scalarization overhead in BasicTTIImpl::getCmpSelInstrCost.
jordy.potman.lists updated this object.
jordy.potman.lists added a reviewer: mkuper.
jordy.potman.lists added a subscriber: llvm-commits.

I noticed this for an out-of-tree target and I don't really know how I can easily add a test for this for an in-tree target.