aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-11-18 13:14:32 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-11-18 13:14:32 +0000
commit07a3c481c656c9cc1e0ace3d599eef1fa81e3cc6 (patch)
tree1ef0bcfae2ebd7b7eb76df86b22f1cfb2821a471 /test/CodeGen/Thumb2/cross-rc-coalescing-2.ll
parent23427207ea575f57b571cf5aad1effb1f97e7ee1 (diff)
downloadexternal_llvm-07a3c481c656c9cc1e0ace3d599eef1fa81e3cc6.zip
external_llvm-07a3c481c656c9cc1e0ace3d599eef1fa81e3cc6.tar.gz
external_llvm-07a3c481c656c9cc1e0ace3d599eef1fa81e3cc6.tar.bz2
LoopVectorizer: Extend the induction variable to a larger type
In some case the loop exit count computation can overflow. Extend the type to prevent most of those cases. The problem is loops like: int main () { int a = 1; char b = 0; lbl: a &= 4; b--; if (b) goto lbl; return a; } The backedge count is 255. The induction variable type is i8. If we add one to 255 to get the exit count we overflow to zero. To work around this issue we extend the type of the induction variable to i32 in the case of i8 and i16. PR17532 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/cross-rc-coalescing-2.ll')
0 files changed, 0 insertions, 0 deletions