aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/R600/R600MachineFunctionInfo.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-05 17:09:14 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-05 17:09:14 +0000
commit41afe6a6fe10f0642e7dce2be8ba14db5a860ad4 (patch)
tree1fd964c6687683bcae52d76580cd894aec773b44 /llvm/lib/Target/R600/R600MachineFunctionInfo.cpp
parent7d41161a2daca1c3aea892bcbf9b136c1d03025e (diff)
downloadllvm-41afe6a6fe10f0642e7dce2be8ba14db5a860ad4.zip
llvm-41afe6a6fe10f0642e7dce2be8ba14db5a860ad4.tar.gz
llvm-41afe6a6fe10f0642e7dce2be8ba14db5a860ad4.tar.bz2
R600: improve inputs/interpolation handling
Use one intrinsic for all sorts of interpolation. Use two separate unexpanded instructions to represent INTERP_XY and _ZW - this will allow to eliminate one part if it's not used. Track liveness of special interpolation regs instead of reserving them - this will allow to reuse those regs, lowering reg pressure. Patch By: Vadim Girlin v2[Vincent Lejeune]: Rebased against current llvm master Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 174394
Diffstat (limited to 'llvm/lib/Target/R600/R600MachineFunctionInfo.cpp')
-rw-r--r--llvm/lib/Target/R600/R600MachineFunctionInfo.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/llvm/lib/Target/R600/R600MachineFunctionInfo.cpp b/llvm/lib/Target/R600/R600MachineFunctionInfo.cpp
index bcb7f94..40aec83 100644
--- a/llvm/lib/Target/R600/R600MachineFunctionInfo.cpp
+++ b/llvm/lib/Target/R600/R600MachineFunctionInfo.cpp
@@ -13,21 +13,6 @@
using namespace llvm;
R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF)
- : MachineFunctionInfo(),
- HasLinearInterpolation(false),
- HasPerspectiveInterpolation(false) {
+ : MachineFunctionInfo() {
memset(Outputs, 0, sizeof(Outputs));
}
-
-unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const {
- assert(HasPerspectiveInterpolation);
- return 0;
-}
-
-unsigned R600MachineFunctionInfo::GetIJLinearIndex() const {
- assert(HasLinearInterpolation);
- if (HasPerspectiveInterpolation)
- return 1;
- else
- return 0;
-}