[SimplifyCFG] Use a more generic name for the selects created by SpeculativelyExecute...
authorCraig Topper <craig.topper@intel.com>
Tue, 31 Oct 2017 19:03:51 +0000 (19:03 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 31 Oct 2017 19:03:51 +0000 (19:03 +0000)
commit7c7fcabd3f4a7e1f484af8c69ac3514de5737ea5
tree30b8dc498f1e72a65ffa14d6f206b6dd1fc9037e
parent81d6d6b643294cbef490a6446a9c993cf9349b52
[SimplifyCFG] Use a more generic name for the selects created by SpeculativelyExecuteBB to prevent long names from being created

Currently the selects are created with the names of their inputs concatenated together. It's possible to get cases that chain these selects together resulting in long names due to multiple levels of concatenation. Our internal branch of llvm managed to generate names over 100000 characters in length on a particular test due to an extreme compounding of the names.

This patch changes the name to a generic name that is not dependent on its inputs.

Differential Revision: https://reviews.llvm.org/D39440

llvm-svn: 317024
llvm/lib/Transforms/Utils/SimplifyCFG.cpp