[llvm] r301474 - [LibCallsShrinkWrap] More descriptive assertion messages.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 26 14:21:02 PDT 2017
Author: davide
Date: Wed Apr 26 16:21:02 2017
New Revision: 301474
URL: http://llvm.org/viewvc/llvm-project?rev=301474&view=rev
Log:
[LibCallsShrinkWrap] More descriptive assertion messages.
Fix a typo while I'm here.
Modified:
llvm/trunk/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LibCallsShrinkWrap.cpp?rev=301474&r1=301473&r2=301474&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LibCallsShrinkWrap.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LibCallsShrinkWrap.cpp Wed Apr 26 16:21:02 2017
@@ -330,7 +330,7 @@ Value *LibCallsShrinkWrap::generateOneRa
UpperBound = 11356.0f;
break;
default:
- llvm_unreachable("Should be reach here");
+ llvm_unreachable("Unhandled library call!");
}
++NumWrappedOneCond;
@@ -394,7 +394,7 @@ Value *LibCallsShrinkWrap::generateTwoRa
UpperBound = 11383.0f;
break;
default:
- llvm_unreachable("Should be reach here");
+ llvm_unreachable("Unhandled library call!");
}
++NumWrappedTwoCond;
@@ -483,7 +483,7 @@ Value *LibCallsShrinkWrap::generateCondF
// Wrap conditions that can potentially generate errno to the library call.
void LibCallsShrinkWrap::shrinkWrapCI(CallInst *CI, Value *Cond) {
- assert(Cond != nullptr && "hrinkWrapCI is not expecting an empty call inst");
+ assert(Cond != nullptr && "ShrinkWrapCI is not expecting an empty call inst");
MDNode *BranchWeights =
MDBuilder(CI->getContext()).createBranchWeights(1, 2000);
More information about the llvm-commits
mailing list