summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/instructions.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-10-21 11:16:01 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-10-24 11:21:04 -0400
commit6815a9af6c98934e3537507ccbf077d69a5d5320 (patch)
tree968a1c3d13c274cfb88c8edd4cf45ffa8ccd2310 /src/mesa/pipe/llvm/instructions.cpp
parent3b772a277fe032c94654648d0671ff42fd3fdce6 (diff)
Cleanup some of the debugging output code
Diffstat (limited to 'src/mesa/pipe/llvm/instructions.cpp')
-rw-r--r--src/mesa/pipe/llvm/instructions.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mesa/pipe/llvm/instructions.cpp b/src/mesa/pipe/llvm/instructions.cpp
index 5a40888696..037bec653f 100644
--- a/src/mesa/pipe/llvm/instructions.cpp
+++ b/src/mesa/pipe/llvm/instructions.cpp
@@ -167,26 +167,6 @@ llvm::Value *Instructions::callFAbs(llvm::Value *val)
llvm::Value * Instructions::lit(llvm::Value *in)
{
-#if 0
- printVector(in);
- return in;
-
- ExtractElementInst *x = new ExtractElementInst(in, unsigned(0),
- name("x"),
- m_block);
-
- ExtractElementInst *y = new ExtractElementInst(in, unsigned(1),
- name("y"),
- m_block);
-
- ExtractElementInst *w = new ExtractElementInst(in, unsigned(3),
- name("w"),
- m_block);
- return vectorFromVals(ConstantFP::get(Type::FloatTy, APFloat(1.f)),
- ConstantFP::get(Type::FloatTy, APFloat(0.f)),
- ConstantFP::get(Type::FloatTy, APFloat(0.f)),
- ConstantFP::get(Type::FloatTy, APFloat(1.f)));
-#else
if (!m_llvmLit) {
m_llvmLit = makeLitFunction(m_mod);
}
@@ -194,7 +174,6 @@ llvm::Value * Instructions::lit(llvm::Value *in)
call->setCallingConv(CallingConv::C);
call->setTailCall(false);
return call;
-#endif
}
llvm::Value * Instructions::sub(llvm::Value *in1, llvm::Value *in2)