Merging r257940:
authorHans Wennborg <hans@hanshq.net>
Wed, 20 Jan 2016 21:30:57 +0000 (21:30 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 20 Jan 2016 21:30:57 +0000 (21:30 +0000)
commit3acb8d3c6d4e470172fb244c809bc6fdd7948c29
tree38031210ef507e1e7159559f46655c0ab057b409
parent3260476414aa2e03566d205f742220a382f4ce07
Merging r257940:
------------------------------------------------------------------------
r257940 | djg | 2016-01-15 13:56:40 -0800 (Fri, 15 Jan 2016) | 10 lines

[SelectionDAG] CSE nodes with differing SDNodeFlags

In the optimizer (GVN etc.) when eliminating redundant nodes with different
flags, the flags are ignored for the purposes of testing for congruence, and
then intersected for the purposes of producing a result that supports the union
of all the uses. This commit makes SelectionDAG's CSE do the same thing,
allowing it to CSE nodes in more cases. This fixes PR26063.

Differential Revision: http://reviews.llvm.org/D15957

------------------------------------------------------------------------
Merging r257942:
------------------------------------------------------------------------
r257942 | djg | 2016-01-15 14:07:35 -0800 (Fri, 15 Jan 2016) | 2 lines

Remove a now-empty file left behind by r257940.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@258351 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/ARM/cse-flags.ll [new file with mode: 0644]
test/CodeGen/X86/2014-05-30-CombineAddNSW.ll [deleted file]