OSDN Git Service

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)
commit1f67c63cb23ba5d405452d72bb8892df6b7ccd4f
tree2c8958a3dcc371a6c8495fc37da4a979198ae112
parent8ea83d499935f406f9fc190de783710c2293ab63
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187007 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
test/CodeGen/R600/fabs.ll
test/CodeGen/R600/fneg.ll
test/CodeGen/R600/literals.ll