diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-06 01:39:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-06 01:39:12 +0000 |
commit | e6819aeee0ccd91d71397c7872aa86b228b6db84 (patch) | |
tree | 4fff12d178e007d6ed805b25469d00afe2e632e4 /llvm/docs/tutorial/LangImpl7.html | |
parent | 0d28238a1f642c2dbe4c16a730be31064619a7f4 (diff) | |
download | bcm5719-llvm-e6819aeee0ccd91d71397c7872aa86b228b6db84.tar.gz bcm5719-llvm-e6819aeee0ccd91d71397c7872aa86b228b6db84.zip |
fixes from Ryan Brown.
llvm-svn: 43747
Diffstat (limited to 'llvm/docs/tutorial/LangImpl7.html')
-rw-r--r-- | llvm/docs/tutorial/LangImpl7.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html index 1a506767e57..9aa65d3b6e1 100644 --- a/llvm/docs/tutorial/LangImpl7.html +++ b/llvm/docs/tutorial/LangImpl7.html @@ -546,8 +546,8 @@ entry: <b>%x1 = alloca double store double %x, double* %x1 %x2 = load double* %x1</b> - %multmp = fcmp ult double %x2, 3.000000e+00 - %booltmp = uitofp i1 %multmp to double + %cmptmp = fcmp ult double %x2, 3.000000e+00 + %booltmp = uitofp i1 %cmptmp to double %ifcond = fcmp one double %booltmp, 0.000000e+00 br i1 %ifcond, label %then, label %else @@ -585,8 +585,8 @@ PHI node for it, so we still just make the PHI.</p> <pre> define double @fib(double %x) { entry: - %multmp = fcmp ult double <b>%x</b>, 3.000000e+00 - %booltmp = uitofp i1 %multmp to double + %cmptmp = fcmp ult double <b>%x</b>, 3.000000e+00 + %booltmp = uitofp i1 %cmptmp to double %ifcond = fcmp one double %booltmp, 0.000000e+00 br i1 %ifcond, label %then, label %else @@ -618,8 +618,8 @@ such blatent inefficiencies :).</p> <pre> define double @fib(double %x) { entry: - %multmp = fcmp ult double %x, 3.000000e+00 - %booltmp = uitofp i1 %multmp to double + %cmptmp = fcmp ult double %x, 3.000000e+00 + %booltmp = uitofp i1 %cmptmp to double %ifcond = fcmp ueq double %booltmp, 0.000000e+00 br i1 %ifcond, label %else, label %ifcont @@ -1674,7 +1674,7 @@ Value *BinaryExprAST::Codegen() { case '-': return Builder.CreateSub(L, R, "subtmp"); case '*': return Builder.CreateMul(L, R, "multmp"); case '<': - L = Builder.CreateFCmpULT(L, R, "multmp"); + L = Builder.CreateFCmpULT(L, R, "cmptmp"); // Convert bool 0/1 to double 0.0 or 1.0 return Builder.CreateUIToFP(L, Type::DoubleTy, "booltmp"); default: break; |