Fix a dagcombine optimization. The optimization attempts to optimize a bitcast of...
authorNadav Rotem <nrotem@apple.com>
Thu, 13 Sep 2012 14:54:28 +0000 (14:54 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 13 Sep 2012 14:54:28 +0000 (14:54 +0000)
commit91a7e0184a4f7976ef11cb48697d2782fc1b9be7
tree2dd9e6c2fbd94d6225a3e9e154d37a1756fed052
parentfaf31d01db913b477b749c9f11f18a9471c0a672
Fix a dagcombine optimization. The optimization attempts to optimize a bitcast of fneg to integers
by xoring the high-bit. This fails if the source operand is a vector because we need to negate
each of the elements in the vector.

Fix rdar://12281066 PR13813.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163802 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/2012-09-13-dagco-fneg.ll [new file with mode: 0644]