diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-04 06:15:11 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-04 06:15:11 +0000 |
commit | 319d594e22c3db55114f233ca398f9760e3f6ed9 (patch) | |
tree | f388bd59d3d495e88504891426aa7bb62f23c1b6 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 6c55412ea4b39103a3a5764d49ddfdf50e066d56 (diff) |
Add the last part that is needed for vectorization of if-converted code.
Added the code that actually performs the if-conversion during vectorization.
We can now vectorize this code:
for (int i=0; i<n; ++i) {
unsigned k = 0;
if (a[i] > b[i]) <------ IF inside the loop.
k = k * 5 + 3;
a[i] = k; <---- K is a phi node that becomes vector-select.
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
0 files changed, 0 insertions, 0 deletions