[NVPTX] Improve handling of FP fusion
authorJustin Holewinski <jholewinski@nvidia.com>
Thu, 17 Jul 2014 18:10:09 +0000 (18:10 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Thu, 17 Jul 2014 18:10:09 +0000 (18:10 +0000)
commit428cf0e49a26c256b0cb4992a00f748500d71bb4
treeba7557ff2a7f63daa24ae032998ddd52f85e2560
parent97483694e7e7a9d07d39ac7fee66b10a7e5e2953
[NVPTX] Improve handling of FP fusion

We now consider the FPOpFusion flag when determining whether
to fuse ops.  We also explicitly emit add.rn when fusion is
disabled to prevent ptxas from fusing the operations on its
own.

llvm-svn: 213287
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/lib/Target/NVPTX/NVPTXISelLowering.h
llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
llvm/test/CodeGen/NVPTX/arithmetic-fp-sm20.ll
llvm/test/CodeGen/NVPTX/fma.ll
llvm/test/CodeGen/NVPTX/fp-contract.ll [new file with mode: 0644]
llvm/test/CodeGen/NVPTX/fp-literals.ll
llvm/test/CodeGen/NVPTX/implicit-def.ll