Page MenuHomePhabricator

[X86] Move getGatherOverhead/getScatterOverhead into X86TargetTransformInfo.
ClosedPublic

Authored by craig.topper on Jul 25 2020, 11:35 PM.

Details

Summary

These cost methods don't make much sense in X86Subtarget. Make
them methods in X86's TTI and move the feature checks from the
X86Subtarget constructor into these methods.

Diff Detail

Unit TestsFailed

TimeTest
160 mslinux > Polly.ScopInfo::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; opt -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/mnt/disks/ssd0/agent/llvm-project/polly/test/ScopInfo -polly-codegen-verify -basic-aa -scoped-noalias -tbaa -polly-scops -analyze < /mnt/disks/ssd0/agent/llvm-project/polly/test/ScopInfo/memcpy-raw-source.ll

Event Timeline

craig.topper created this revision.Jul 25 2020, 11:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2020, 11:35 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Jul 26 2020, 1:48 AM

LGTM - cheers!

This revision is now accepted and ready to land.Jul 26 2020, 1:48 AM
This revision was automatically updated to reflect the committed changes.