Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does.
authorChris Lattner <sabre@nondot.org>
Sun, 27 Jan 2008 05:29:54 +0000 (05:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Jan 2008 05:29:54 +0000 (05:29 +0000)
commitb753065f6d415ee4a63a045a4150caaebd5d05a2
treead18280e86daafdb17839378d797f5a7d1a7468e
parent4d53049c92c1d362db3e9f3697e398ec38934408
Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46406 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/fpextend.ll [new file with mode: 0644]