mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[llvm-mca][UpdateTestChecks] Don't try to align blocks that have already been subject to alignment in update_mca_test_checks.py
This fixes PR39466. llvm-svn: 345499
This commit is contained in:
parent
dc0e1e6c1b
commit
8616ffdf42
@ -267,10 +267,14 @@ def _align_matching_blocks(all_blocks, farthest_indexes):
|
||||
continue
|
||||
|
||||
changed = False
|
||||
while(index < farthest_indexes[block]):
|
||||
blocks.insert(index, '')
|
||||
index += 1
|
||||
changed = True
|
||||
# If the block has not already been subject to alignment (i.e. if the
|
||||
# previous block is not empty) then insert empty blocks until the index
|
||||
# matches the farthest index identified for that block.
|
||||
if (index > 0) and blocks[index - 1]:
|
||||
while(index < farthest_indexes[block]):
|
||||
blocks.insert(index, '')
|
||||
index += 1
|
||||
changed = True
|
||||
|
||||
if changed:
|
||||
# Bail out. We'll need to re-do the farthest block analysis now that
|
||||
|
Loading…
Reference in New Issue
Block a user