rdar://13126763
authorShuxin Yang <shuxin.llvm@gmail.com>
Sat, 2 Feb 2013 00:22:03 +0000 (00:22 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Sat, 2 Feb 2013 00:22:03 +0000 (00:22 +0000)
commitcadd8a068e3fe3409abad53a86ca751052456ba4
treef2b2063e51eaacf473879b630ab929f1a362ab87
parent3c66b0be9055ed43f42cf5d1bd808f14374df2a3
rdar://13126763

Fix a bug in DAGCombine. The symptom is mistakenly optimizing expression
"x + x*x" into "x * 3.0".

llvm-svn: 174239
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/dagcombine_unsafe_math.ll [new file with mode: 0644]