DAGCombiner: Continue combining if FoldConstantArithmetic() fails.
authorMatthias Braun <matze@braunis.de>
Wed, 20 May 2015 18:54:02 +0000 (18:54 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 20 May 2015 18:54:02 +0000 (18:54 +0000)
commitfa3d0dc026331bf8b64382874f54ce11cefe51a6
treeb17680b7e666544507915ab6439a0699b899eb72
parentd594ba081506f0f57e9801e3f81467b1766b1e04
DAGCombiner: Continue combining if FoldConstantArithmetic() fails.

DAG.FoldConstantArithmetic() can fail even though both operands are
Constants if OpaqueConstants are involved. Continue trying other combine
possibilities in tis case.

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

Somewhat related to PR21801 / rdar://19211454

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