Changeset View
Changeset View
Standalone View
Standalone View
test/Transforms/LoopVectorize/multiple-address-spaces.ll
; RUN: opt < %s -loop-vectorize -force-vector-unroll=1 -force-vector-width=4 -dce -instcombine -S | FileCheck %s | ; RUN: opt < %s -basicaa -loop-vectorize -force-vector-unroll=1 -force-vector-width=4 -dce -instcombine -S | FileCheck %s | ||||
; From a simple program with two address spaces: | ; From a simple program with two address spaces: | ||||
; char Y[4*10000] __attribute__((address_space(1))); | ; char Y[4*10000] __attribute__((address_space(1))); | ||||
; char X[4*10000]; | ; char X[4*10000]; | ||||
; int main() { | ; int main() { | ||||
; for (int i = 0; i < 4*10000; ++i) | ; for (int i = 0; i < 4*10000; ++i) | ||||
; X[i] = Y[i] + 1; | ; X[i] = Y[i] + 1; | ||||
; return 0; | ; return 0; | ||||
Show All 35 Lines |