aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorCong Hou <congh@google.com>2015-10-29 01:28:44 +0000
committerCong Hou <congh@google.com>2015-10-29 01:28:44 +0000
commitabe042bb3e99964e30894f2ab248d26b24579273 (patch)
tree9df80963defdb3db0bf2a17b3e2923bfde187db8 /llvm/lib/CodeGen/MachineScheduler.cpp
parent97f78cfa288d65e4688584640d405c44ace3d9e0 (diff)
downloadllvm-abe042bb3e99964e30894f2ab248d26b24579273.zip
llvm-abe042bb3e99964e30894f2ab248d26b24579273.tar.gz
llvm-abe042bb3e99964e30894f2ab248d26b24579273.tar.bz2
Add a flag vectorizer-maximize-bandwidth in loop vectorizer to enable using larger vectorization factor.
To be able to maximize the bandwidth during vectorization, this patch provides a new flag vectorizer-maximize-bandwidth. When it is turned on, the vectorizer will determine the vectorization factor (VF) using the smallest instead of widest type in the loop. To avoid increasing register pressure too much, estimates of the register usage for different VFs are calculated so that we only choose a VF when its register usage doesn't exceed the number of available registers. llvm-svn: 251592
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions