diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-26 17:09:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-26 17:09:59 +0000 |
commit | aeecb6c73ae05100eec57e9521beb87635f1f26e (patch) | |
tree | eec6f1dd3bd55286ed487918ceeeaeeb106abb50 /lib | |
parent | 72c8f0d156c0a32d809715bca402b5242b179340 (diff) |
Fix PR2096, a regression introduced with my patch last night. This
also fixes cfrac, flops, and 175.vpr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 144b976da9..bed37307a0 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -411,7 +411,7 @@ static SDOperand GetNegatedExpression(SDOperand Op, SelectionDAG &DAG, assert(!HonorSignDependentRoundingFPMath()); // -(X*Y) -> -X * Y - if (isNegatibleForFree(Op.getOperand(0), Depth+1)) + if (isNegatibleForFree(Op.getOperand(0), AfterLegalize, Depth+1)) return DAG.getNode(Op.getOpcode(), Op.getValueType(), GetNegatedExpression(Op.getOperand(0), DAG, AfterLegalize, Depth+1), |