[PATCH] D40418: [CodeGen] Print noreg as '_' in both MIR and debug output

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 10:47:58 PST 2017


arsenm added inline comments.


================
Comment at: lib/CodeGen/TargetRegisterInfo.cpp:91
     if (!Reg)
-      OS << "%noreg";
+      OS << '_';
     else if (TargetRegisterInfo::isStackSlot(Reg))
----------------
I think noreg is clearer here. It's easier to search debug output for %noreg than _


https://reviews.llvm.org/D40418





More information about the llvm-commits mailing list