llvm-project
1cb9b790 - [UTC] Align label var handling of old lines to new lines (#173850)

Commit
133 days ago
[UTC] Align label var handling of old lines to new lines (#173850) BB labels have been treated as variables in newer UTC versions. However, UTC previously handled BB labels in old lines differently from new lines, causing incorrect `remap_metavar_names`. E.g., - New lines var `exit:` and `label %exit`: UTC generalized them as `[[@@]]` and `[[@@]]`. - Old lines var `[[EXIT]]:` and `label %[[EXIT]]`: UTC generalized them as `[[@@]]:` and `label %[[@@]]`, which mismatched with the generalization of new lines. This mismatch might cause unexpected variable name remappings, even if the new lines are indeed equivalent to the old lines. This PR aligns label var handling of old lines to new lines, i.e., generalizes `[[EXIT]]:` and `label %[[EXIT]]` as `[[@@]]` and `[[@@]]`.
Author
Parents
Loading