[llvm-commits] CVS: llvm/examples/ParallelJIT/ParallelJIT.cpp

Reid Spencer reid at x10sys.com
Fri Dec 22 22:06:53 PST 2006



Changes in directory llvm/examples/ParallelJIT:

ParallelJIT.cpp updated: 1.6 -> 1.7
---
Log message:

For PR950: http://llvm.org/PR950 :
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and 
been replaced with ICmpInst and FCmpInst.


---
Diffs of the changes:  (+1 -1)

 ParallelJIT.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/examples/ParallelJIT/ParallelJIT.cpp
diff -u llvm/examples/ParallelJIT/ParallelJIT.cpp:1.6 llvm/examples/ParallelJIT/ParallelJIT.cpp:1.7
--- llvm/examples/ParallelJIT/ParallelJIT.cpp:1.6	Fri Oct 20 02:07:23 2006
+++ llvm/examples/ParallelJIT/ParallelJIT.cpp	Sat Dec 23 00:05:40 2006
@@ -83,7 +83,7 @@
   BasicBlock* RecurseBB = new BasicBlock("recurse", FibF);
 
   // Create the "if (arg < 2) goto exitbb"
-  Value *CondInst = BinaryOperator::createSetLE(ArgX, Two, "cond", BB);
+  Value *CondInst = new ICmpInst(ICmpInst::ICMP_SLE, ArgX, Two, "cond", BB);
   new BranchInst(RetBB, RecurseBB, CondInst, BB);
 
   // Create: ret int 1






More information about the llvm-commits mailing list