Teach DAG combine to fold (trunc (fptoXi x)) to (fptoXi x)
authorMichael Liao <michael.liao@intel.com>
Tue, 16 Oct 2012 19:38:35 +0000 (19:38 +0000)
committerMichael Liao <michael.liao@intel.com>
Tue, 16 Oct 2012 19:38:35 +0000 (19:38 +0000)
commit272ea0323999890d8bcf75b873a1c8ab2cdcba0d
tree9c360ccd3e6ec121f64e3be30ed53b9128f96e95
parent6f7cccd2e28bf544609ee8fdbfac4a24e9f37ff6
Teach DAG combine to fold (trunc (fptoXi x)) to (fptoXi x)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/trunc-fp2int.ll [new file with mode: 0644]