summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-05-11 23:04:28 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-05-11 23:04:28 +0000
commitf2305e44675390adc80bae4834672132c12686f5 (patch)
treef971cf33ab02e8424be4043b02952b1d5e25d631 /clang/lib/CodeGen/CodeGenModule.cpp
parenta544fefa322d3bb6a61626b898a64a827558d04c (diff)
downloadbcm5719-llvm-f2305e44675390adc80bae4834672132c12686f5.tar.gz
bcm5719-llvm-f2305e44675390adc80bae4834672132c12686f5.zip
LoopVectorize: Use the widest induction variable type
Use the widest induction type encountered for the cannonical induction variable. We used to turn the following loop into an empty loop because we used i8 as induction variable type and truncated 1024 to 0 as trip count. int a[1024]; void fail() { int reverse_induction = 1023; unsigned char forward_induction = 0; while ((reverse_induction) >= 0) { forward_induction++; a[reverse_induction] = forward_induction; --reverse_induction; } } radar://13862901 llvm-svn: 181667
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud