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