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/Fibonacci/fibonacci.cpp | |
parent | f171af97d50df7ebd7661756e89eef2295014e81 (diff) | |
download | llvm-266e42b312ab7c457d1eab01475f63e59f60933c.zip llvm-266e42b312ab7c457d1eab01475f63e59f60933c.tar.gz llvm-266e42b312ab7c457d1eab01475f63e59f60933c.tar.bz2 |
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/Fibonacci/fibonacci.cpp')
-rw-r--r-- | llvm/examples/Fibonacci/fibonacci.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Fibonacci/fibonacci.cpp b/llvm/examples/Fibonacci/fibonacci.cpp index 6f77551..96aeb63 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 |