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 | 628c2dba60ea6978ba9aa9292c8a7e2064cbd0ef (patch) | |
tree | 4b81eaae4c379e98a7338d7053c8e2c8bd731e63 /clang/lib/Serialization/Module.cpp | |
parent | 9b65726d24834f3c71bbbdc6cbd63c51d1527ed4 (diff) | |
download | llvm-628c2dba60ea6978ba9aa9292c8a7e2064cbd0ef.zip llvm-628c2dba60ea6978ba9aa9292c8a7e2064cbd0ef.tar.gz llvm-628c2dba60ea6978ba9aa9292c8a7e2064cbd0ef.tar.bz2 |
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.
}
llvm-svn: 169217
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
0 files changed, 0 insertions, 0 deletions