diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 06:05:41 +0000 | 
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-23 06:05:41 +0000 | 
| commit | 266e42b312ab7c457d1eab01475f63e59f60933c (patch) | |
| tree | 7ac7dbe9437ac2cdbbf532cacb9e043dc6f5645a /llvm/examples | |
| parent | f171af97d50df7ebd7661756e89eef2295014e81 (diff) | |
| download | bcm5719-llvm-266e42b312ab7c457d1eab01475f63e59f60933c.tar.gz bcm5719-llvm-266e42b312ab7c457d1eab01475f63e59f60933c.zip | |
For 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.
llvm-svn: 32751
Diffstat (limited to 'llvm/examples')
| -rw-r--r-- | llvm/examples/Fibonacci/fibonacci.cpp | 2 | ||||
| -rw-r--r-- | llvm/examples/ParallelJIT/ParallelJIT.cpp | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/examples/Fibonacci/fibonacci.cpp b/llvm/examples/Fibonacci/fibonacci.cpp index 6f775515fba..96aeb6340aa 100644 --- a/llvm/examples/Fibonacci/fibonacci.cpp +++ b/llvm/examples/Fibonacci/fibonacci.cpp @@ -58,7 +58,7 @@ static Function *CreateFibFunction(Module *M) {    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 diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp index dfda1263786..7f2e1bfc10b 100644 --- a/llvm/examples/ParallelJIT/ParallelJIT.cpp +++ b/llvm/examples/ParallelJIT/ParallelJIT.cpp @@ -83,7 +83,7 @@ static Function *CreateFibFunction(Module *M)    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 | 

