@@ -818,11 +818,8 @@ BackendLLVM::llvm_assign_initial_value(const Symbol& sym, bool force)
818818 llvm::Value* got_userdata = nullptr ;
819819
820820 // See if userdata input placement has been used for this symbol
821- ustring layersym = ustring::fmtformat (" {}.{}" , inst ()->layername (),
822- sym.name ());
823- symloc = group ().find_symloc (layersym, SymArena::UserData);
824- if (!symloc)
825- symloc = group ().find_symloc (sym.name (), SymArena::UserData);
821+ symloc = group ().find_symloc (sym.name (), inst ()->layername (),
822+ SymArena::UserData);
826823 if (symloc) {
827824 // We had a userdata pre-placement record for this variable.
828825 // Just copy from the correct offset location!
@@ -1793,13 +1790,8 @@ BackendLLVM::build_llvm_instance(bool groupentry)
17931790 {
17941791 if (!s.renderer_output ()) // Skip if not a renderer output
17951792 continue ;
1796- // Try to look up the sym among the outputs with the full layer.name
1797- // specification first. If that fails, look for name only.
1798- ustring layersym = ustring::fmtformat (" {}.{}" , inst ()->layername (),
1799- s.name ());
1800- auto symloc = group ().find_symloc (layersym, SymArena::Outputs);
1801- if (!symloc)
1802- symloc = group ().find_symloc (s.name (), SymArena::Outputs);
1793+ auto symloc = group ().find_symloc (s.name (), inst ()->layername (),
1794+ SymArena::Outputs);
18031795 if (!symloc) {
18041796 // std::cout << "No output copy for " << s.name()
18051797 // << " because no symloc was found\n";
0 commit comments