[ADT] Micro-optimize the Triple constructor by doing a single split and
authorChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 07:51:43 +0000 (07:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 07:51:43 +0000 (07:51 +0000)
commitf054eca167ea834a168704ff7065a149d75e8f0f
tree6bad8ea166289ed22ca97a141b27b67e647f3f08
parent4425c91deac5001cc7f2dd5c0b8a14f8bf87ce27
[ADT] Micro-optimize the Triple constructor by doing a single split and
re-using the resulting components rather than repeatedly splitting and
re-splitting to compute each component as part of the initializer list.

This is more work on PR23676. Sadly, it doesn't help much. It removes
the constructor from my profile, but doesn't make a sufficient dent in
the total time. But it should play together nicely with subsequent
changes.

llvm-svn: 247250
llvm/lib/Support/Triple.cpp