[Target] Don't return a std::string in getRegAsmName
getRegAsmName ends up making a copy of the register's name in order to make a lower-case version of it. This is bad because getRegForInlineAsmConstraint, it's sole caller, does a lowercase comparison anyway. This resulted in a significant regression in compile time for the Linux kernel because getRegAsmName is called in a loop by getRegForInlineAsmConstraint. Instead, forgo the call to lower in getRegAsmName and have it return a StringRef. No functionality change is intended. llvm-svn: 270099
Loading
Please sign in to comment