[PowerPC] Improve int_to_fp(fp_to_int(x)) combining
authorHal Finkel <hfinkel@anl.gov>
Tue, 6 Jan 2015 06:01:57 +0000 (06:01 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 6 Jan 2015 06:01:57 +0000 (06:01 +0000)
commit10ae86584773a23574ecc26f750366f959e9d058
tree86fcb21ce6e712364ea5ab9873e4e9d404458acd
parent17395fa733494da19b3931c2957b870da78aa0b7
[PowerPC] Improve int_to_fp(fp_to_int(x)) combining

The old target DAG combine that allowed for performing int_to_fp(fp_to_int(x))
without a load/store pair is updated here with support for unsigned integers,
and to support single-precision values without a third rounding step, on newer
cores with the appropriate instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225248 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/fp-to-int-to-fp.ll [new file with mode: 0644]