[DAG] Keep the opaque constant flag when performing unary constant folding operations.
authorJuergen Ributzka <juergen@apple.com>
Tue, 25 Mar 2014 18:01:20 +0000 (18:01 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 25 Mar 2014 18:01:20 +0000 (18:01 +0000)
commit6ac0491001baccec5aa253baaaf51e6c72f6ffd0
tree838321590eb986807b306552ac7b2a2285263b37
parent6f4f46cf112567e273504b41b47301f922347577
[DAG] Keep the opaque constant flag when performing unary constant folding operations.

Usually opaque constants shouldn't be folded, unless they are simple unary
operations that don't create new constants. Although this shouldn't drop the
opaque constant flag. This commit fixes this.

Related to <rdar://problem/14774662>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204737 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp