Refine the FCMP_ORD and FCMP_UNO.
authorYang Rong <rong.r.yang@intel.com>
Mon, 24 Mar 2014 09:21:40 +0000 (17:21 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 25 Mar 2014 05:21:29 +0000 (13:21 +0800)
commit3255c789eb904c11279de40326d2ec9c7b43cb13
treef0614a692fb7a701d502cb234e5a20166843140b
parent7d8897fdb0d4d6efd279cd08a47f239695a92814
Refine the FCMP_ORD and FCMP_UNO.

If there is a constant between src0 and src1 of FCMP_ORD/FCMP_UNO, the constant
value must be ordered, otherwise, llvm will optimize the instruction to ture/false.
So discard this constant value, only compare the other src.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_gen_backend.cpp