diff options
| author | Jinsong Ji <jji@us.ibm.com> | 2019-06-25 21:50:56 +0000 |
|---|---|---|
| committer | Jinsong Ji <jji@us.ibm.com> | 2019-06-25 21:50:56 +0000 |
| commit | fee855b5bc1abe1f3f89e977ce4c81cf9bdbc2e4 (patch) | |
| tree | ff2566663bd7c94f3c6bab1aeb22e5740477aeb6 /llvm/test/CodeGen/PowerPC | |
| parent | c32d307a49f5255602e7543e64e6c38a7f536abc (diff) | |
| download | bcm5719-llvm-fee855b5bc1abe1f3f89e977ce4c81cf9bdbc2e4.tar.gz bcm5719-llvm-fee855b5bc1abe1f3f89e977ce4c81cf9bdbc2e4.zip | |
[MachinePipeliner] Fix risky iterator usage R++, --R
When we calculate MII, we use two loops, one with iterator R++ to
check whether we can reserve the resource, then --R to move back
the iterator to do reservation.
This is risky, as R++, --R may not point to the same element at all.
The can cause wrong MII.
Differential Revision: https://reviews.llvm.org/D63536
llvm-svn: 364353
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/sms-iterator.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/sms-iterator.ll b/llvm/test/CodeGen/PowerPC/sms-iterator.ll index ec806799996..1210ed98b5b 100644 --- a/llvm/test/CodeGen/PowerPC/sms-iterator.ll +++ b/llvm/test/CodeGen/PowerPC/sms-iterator.ll @@ -5,7 +5,7 @@ %0 = type { i32, [16 x double] } -; CHECK: MII = 7 MAX_II = 17 +; CHECK: MII = 8 MAX_II = 18 define dso_local fastcc void @_ZN3povL9polysolveEiPdS0_() unnamed_addr #0 { br label %1 |

