[PATCH] D40420: [CodeGen] Print "%vreg0" as "%0" in both MIR and debug output

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 11:31:45 PST 2017


nemanjai added a comment.

In https://reviews.llvm.org/D40420#937822, @qcolombet wrote:

> This is a personal taste, but I find %0 less obvious than %vreg0.
>  I.e., I would be against this change and I would rather change the dump of .mir.


+1
In addition to being more readable, I use vim and find it useful to place the cursor on a string to search for. It is much more likely that a string like `vreg17` will match only what I care about than a string like `17`. Of course, I could add the `%` to the search string but I'm not sure how to do that without requiring manual entry.
So I guess I just find the strings with `vreg` convenient with my workflow.


https://reviews.llvm.org/D40420





More information about the llvm-commits mailing list