diff options
author | Serge Guelton <sguelton@quarkslab.com> | 2019-01-03 14:11:58 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@quarkslab.com> | 2019-01-03 14:11:58 +0000 |
commit | 07ccb4b81de973819cf212d1b4e8538894ca8f48 (patch) | |
tree | de6e3e479c14f6e7137975bee06117e1fc5c1158 /llvm/test/CodeGen/SystemZ/Large/branch-range-09.py | |
parent | 707fab58a985df721ef678ed79a64da7d2adfe7f (diff) | |
download | bcm5719-llvm-07ccb4b81de973819cf212d1b4e8538894ca8f48.tar.gz bcm5719-llvm-07ccb4b81de973819cf212d1b4e8538894ca8f48.zip |
Pythran compat - range vs. xrange
Use range instead of xrange whenever possible. The extra list creation in Python2
is generally not a performance bottleneck.
Differential Revision: https://reviews.llvm.org/D56253
llvm-svn: 350309
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/Large/branch-range-09.py')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/Large/branch-range-09.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/SystemZ/Large/branch-range-09.py b/llvm/test/CodeGen/SystemZ/Large/branch-range-09.py index 40bfe31007f..09d5d691548 100644 --- a/llvm/test/CodeGen/SystemZ/Large/branch-range-09.py +++ b/llvm/test/CodeGen/SystemZ/Large/branch-range-09.py @@ -79,7 +79,7 @@ print('entry:') print(' br label %before0') print('') -for i in xrange(branch_blocks): +for i in range(branch_blocks): next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main' print('before%d:' % i) print(' %%bstop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i)) @@ -91,14 +91,14 @@ for i in xrange(branch_blocks): print('%s:' % next) a, b = 1, 1 -for i in xrange(0, main_size, 6): +for i in range(0, main_size, 6): a, b = b, a + b offset = 4096 + b % 500000 value = a % 256 print(' %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)) print(' store volatile i8 %d, i8 *%%ptr%d' % (value, i)) -for i in xrange(branch_blocks): +for i in range(branch_blocks): print(' %%astop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i + 25)) print(' %%acur%d = load i8 , i8 *%%astop%d' % (i, i)) print(' %%aext%d = sext i8 %%acur%d to i32' % (i, i)) |