llvm.org GIT mirror llvm / e180cfa
Merging r227260: ------------------------------------------------------------------------ r227260 | compnerd | 2015-01-27 14:57:35 -0800 (Tue, 27 Jan 2015) | 4 lines SymbolRewriter: prevent unnecessary rewrite The rewrite for the pattern based rewrite is unnecessary if the existing name matches the pattern. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@227323 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
144144 report_fatal_error("unable to transforn " + C.getName() + " in " +
145145 M.getModuleIdentifier() + ": " + Error);
146146
147 if (C.getName() == Name)
148 continue;
149
147150 if (Value *V = (M.*Get)(Name))
148151 C.setValueName(V->getValueName());
149152 else