diff options
author | Duncan Sands <baldrick@free.fr> | 2008-06-30 10:19:09 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-06-30 10:19:09 +0000 |
commit | f19591c91ec39496d58bf4835640d25abc026da9 (patch) | |
tree | 46b9f001f440699f64f02f4be2d1119f0ffdfa0d /win32 | |
parent | b8722f7b6e7ee779c4c1c688e87cde8ee6d5f6c4 (diff) | |
download | external_llvm-f19591c91ec39496d58bf4835640d25abc026da9.zip external_llvm-f19591c91ec39496d58bf4835640d25abc026da9.tar.gz external_llvm-f19591c91ec39496d58bf4835640d25abc026da9.tar.bz2 |
Revert the SelectionDAG optimization that makes
it impossible to create a MERGE_VALUES node with
only one result: sometimes it is useful to be able
to create a node with only one result out of one of
the results of a node with more than one result, for
example because the new node will eventually be used
to replace a one-result node using ReplaceAllUsesWith,
cf X86TargetLowering::ExpandFP_TO_SINT. On the other
hand, most users of MERGE_VALUES don't need this and
for them the optimization was valuable. So add a new
utility method getMergeValues for creating MERGE_VALUES
nodes which by default performs the optimization.
Change almost everywhere to use getMergeValues (and
tidy some stuff up at the same time).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions