LLVM automatically add an numeric suffix for names automatically created. So, if intermediate names must be created for a pseudo whose name was, for example, "%R4", these new names will be "%R41", "%R42". This is quite annoying because we can't make the distinction between these names and the original names, (maybe of some other pseudos whose names were "%R41" & "%R42). Change this by adding a "." at the end of each name, as this will then allow to see what the original name was. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 3a68d09d9..3fcc88686 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -277,10 +277,10 @@ static const char *pseudo_name(pseudo_t pseudo, char *buf) { switch (pseudo->type) { case PSEUDO_REG: - snprintf(buf, MAX_PSEUDO_NAME, "R%d", pseudo->nr); + snprintf(buf, MAX_PSEUDO_NAME, "R%d.", pseudo->nr); break; case PSEUDO_PHI: - snprintf(buf, MAX_PSEUDO_NAME, "PHI%d", pseudo->nr); + snprintf(buf, MAX_PSEUDO_NAME, "PHI%d.", pseudo->nr); break; case PSEUDO_SYM: case PSEUDO_VAL: @@ -1141,7 +1141,7 @@ static void output_fn(LLVMModuleRef module, struct entrypoint *ep) LLVMValueRef arg; arg = LLVMGetParam(function.fn, i); - snprintf(name, sizeof(name), "ARG%d", i+1); + snprintf(name, sizeof(name), "ARG%d.", i+1); LLVMSetValueName(arg, name); } -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html