2009-09-08 22:34:10 +00:00
|
|
|
; RUN: opt %s -instcombine -S | grep sub
|
2008-07-17 06:07:20 +00:00
|
|
|
; PR2553
|
|
|
|
|
|
|
|
define double @test(double %X) nounwind {
|
|
|
|
; fsub of self can't be optimized away.
|
2009-06-04 22:49:04 +00:00
|
|
|
%Y = fsub double %X, %X
|
2008-07-17 06:07:20 +00:00
|
|
|
ret double %Y
|
|
|
|
}
|