diff options
author | Craig Topper <craig.topper@intel.com> | 2018-01-20 00:26:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-01-20 00:26:08 +0000 |
commit | 0d797a34d8be0707c4f17e88d7d22004d844fbf4 (patch) | |
tree | e350faaa70f176cdc5da5f9d6826a26d54defdfc /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 2f8af79927c5902900a7ddeef2300ea92a9fcf22 (diff) | |
download | bcm5719-llvm-0d797a34d8be0707c4f17e88d7d22004d844fbf4.tar.gz bcm5719-llvm-0d797a34d8be0707c4f17e88d7d22004d844fbf4.zip |
[X86] Add support for passing 'prefer-vector-width' function attribute into X86Subtarget and exposing via X86's getRegisterWidth TTI interface.
This will cause the vectorizers to do some limiting of the vector widths they create. This is not a strict limit. There are reasons I know of that the loop vectorizer will generate larger vectors for.
I've written this in such a way that the interface will only return a properly supported width(0/128/256/512) even if the attribute says something funny like 384 or 10.
This has been split from D41895 with the remainder in a follow up commit.
llvm-svn: 323015
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions