Commit ba6541f
Automerge: [NFC][MIR] Fix extra whitespace in MIR printing (#162928)
Fix a whitespace regression in MIR printing that was introduced in
llvm/llvm-project#137361.
The default value for `ListSeparator` is `", "`, so we don't need to
print an additional space in front of tokens for optional symbols and
other things printed after operands.
Note, the modified LIT test will fail at trunk without the fix,
demonstrating that the extra space before `, pre-instr-symbol <mcsymbol
>` on Line 63 exists currently and is fixed with this change.File tree
4 files changed
+25
-19
lines changed- llvm
- include/llvm/ADT
- lib/CodeGen
- test/CodeGen/MIR/AArch64
- unittests/ADT
4 files changed
+25
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
532 | 533 | | |
533 | 534 | | |
534 | | - | |
| 535 | + | |
| 536 | + | |
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
538 | | - | |
| 540 | + | |
539 | 541 | | |
540 | 542 | | |
541 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
| 865 | + | |
| 866 | + | |
866 | 867 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
874 | 872 | | |
875 | 873 | | |
876 | 874 | | |
877 | 875 | | |
878 | 876 | | |
879 | | - | |
| 877 | + | |
880 | 878 | | |
881 | 879 | | |
882 | 880 | | |
883 | | - | |
| 881 | + | |
884 | 882 | | |
885 | 883 | | |
886 | 884 | | |
887 | | - | |
| 885 | + | |
888 | 886 | | |
889 | 887 | | |
890 | 888 | | |
891 | | - | |
| 889 | + | |
892 | 890 | | |
893 | 891 | | |
894 | 892 | | |
895 | | - | |
| 893 | + | |
896 | 894 | | |
897 | 895 | | |
898 | 896 | | |
899 | | - | |
| 897 | + | |
900 | 898 | | |
901 | 899 | | |
902 | | - | |
| 900 | + | |
903 | 901 | | |
904 | 902 | | |
905 | 903 | | |
906 | | - | |
| 904 | + | |
907 | 905 | | |
908 | 906 | | |
909 | 907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
293 | 299 | | |
294 | 300 | | |
295 | 301 | | |
| |||
0 commit comments