diff options
author | Sam McCall <sam.mccall@gmail.com> | 2023-04-21 21:22:35 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2023-04-24 15:55:21 +0200 |
commit | 271a73dae32f5eac2011a2f85351975484496262 (patch) | |
tree | 83472a917ea2b9f48065df17f7c6141d5ef2dc36 /llvm/lib/CodeGen/ExpandVectorPredication.cpp | |
parent | 1162a3868577744d8c5fb4d72ceed58a7c6fd20c (diff) | |
download | llvm-271a73dae32f5eac2011a2f85351975484496262.zip llvm-271a73dae32f5eac2011a2f85351975484496262.tar.gz llvm-271a73dae32f5eac2011a2f85351975484496262.tar.bz2 |
[dataflow] HTMLLogger: fix off-by-one in the BB listing
The indexes of analysis state within a BB element is a bit odd:
BB.0 is the initial state
BB.1 is the state after the first element
etc
This means we have N+1 states and we need N+1 elements in the BB list.
We add a dummy element at the beginning rather than the end, because we want
selecting a CFG element to show the state *afterwards*.
For example, if we click on an expr, we want to be able to see its value model!
Differential Revision: https://reviews.llvm.org/D148951
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
0 files changed, 0 insertions, 0 deletions