aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2016-08-02 15:25:16 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2016-08-02 15:25:16 +0000
commit18d88983179a300adcae41c835fbcf7990c91b2d (patch)
tree481776138dad13c03e9e14f6a4463028fdfaf486 /llvm/lib/CodeGen/MachineFunction.cpp
parent7a7004a9993d3715e741aaafecf90ad9d5af7cf9 (diff)
downloadllvm-18d88983179a300adcae41c835fbcf7990c91b2d.zip
llvm-18d88983179a300adcae41c835fbcf7990c91b2d.tar.gz
llvm-18d88983179a300adcae41c835fbcf7990c91b2d.tar.bz2
[LV] Generate both scalar and vector integer induction variables
This patch enables the vectorizer to generate both scalar and vector versions of an integer induction variable for a given loop. Previously, we only generated a scalar induction variable if we knew all its users were going to be scalar. Otherwise, we generated a vector induction variable. In the case of a loop with both scalar and vector users of the induction variable, we would generate the vector induction variable and extract scalar values from it for the scalar users. With this patch, we now generate both versions of the induction variable when there are both scalar and vector users and select which version to use based on whether the user is scalar or vector. Differential Revision: https://reviews.llvm.org/D22869 llvm-svn: 277474
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions