This is an archive of the discontinued LLVM Phabricator instance.

[TTI] getScalarizationOverhead - use explicit VectorType operand
ClosedPublic

Authored by RKSimon on May 4 2020, 10:21 AM.

Details

Summary

getScalarizationOverhead is only ever called with vectors (and we already had a load of cast<VectorType> calls immediately inside the functions

Followup to D78357

Diff Detail

Event Timeline

RKSimon created this revision.May 4 2020, 10:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 10:21 AM
samparker accepted this revision.May 5 2020, 6:48 AM

Apart from the dyn_cast nits, LGTM.

llvm/include/llvm/CodeGen/BasicTTIImpl.h
591–592

dyn_cast?

1226–1227

and here.

1235

same.

1588

here.

1604

here.

This revision is now accepted and ready to land.May 5 2020, 6:48 AM
This revision was automatically updated to reflect the committed changes.