[RewriteStatepointsForGC] Adjust naming scheme to be more stable
authorPhilip Reames <listmail@philipreames.com>
Fri, 24 Jul 2015 19:01:39 +0000 (19:01 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 24 Jul 2015 19:01:39 +0000 (19:01 +0000)
commitfa2c630f798cd9df7b565f18cdf06821e294512e
tree7304f55778d1c01c0ecd5a67ecfdcebef0d63263
parent7fb865ea8ea8134d1b8429366bcee361df3e5448
[RewriteStatepointsForGC] Adjust naming scheme to be more stable

The names for instructions inserted were previous dependent on iteration order.  By deriving the names from the original instructions, we can avoid instability in tests without resorting to ordered traversals.  It also makes the IR mildly easier to read at large scale.

llvm-svn: 243140
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-1.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-10.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-4.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-5.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-6.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-7.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers.ll