DAGCombiner: Pass the correct type to TargetLowering::isF(Abs|Neg)Free
authorTom Stellard <thomas.stellard@amd.com>
Tue, 23 Jul 2013 23:55:03 +0000 (23:55 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 23 Jul 2013 23:55:03 +0000 (23:55 +0000)
commitc54731aa9d527f3a39148e4fbf6b99b89d1aef7c
tree7aedb404e313eff68880f14970adbdd51acc2e42
parent8cb0e47c9ee2061cedb06bbb648e1d5c2efea82e
DAGCombiner: Pass the correct type to TargetLowering::isF(Abs|Neg)Free

This commit also implements these functions for R600 and removes a test
case that was relying on the buggy behavior.

llvm-svn: 187007
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/R600/AMDGPUISelLowering.cpp
llvm/lib/Target/R600/AMDGPUISelLowering.h
llvm/test/CodeGen/R600/fabs.ll
llvm/test/CodeGen/R600/fneg.ll
llvm/test/CodeGen/R600/literals.ll