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 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
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 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
0 files changed, 0 insertions, 0 deletions