forked from OSchip/llvm-project
[LibCallsShrinkWrap] More descriptive assertion messages.
Fix a typo while I'm here. llvm-svn: 301474
This commit is contained in:
parent
3c3785fd1f
commit
11817ba2ea
|
@ -330,7 +330,7 @@ Value *LibCallsShrinkWrap::generateOneRangeCond(CallInst *CI,
|
|||
UpperBound = 11356.0f;
|
||||
break;
|
||||
default:
|
||||
llvm_unreachable("Should be reach here");
|
||||
llvm_unreachable("Unhandled library call!");
|
||||
}
|
||||
|
||||
++NumWrappedOneCond;
|
||||
|
@ -394,7 +394,7 @@ Value *LibCallsShrinkWrap::generateTwoRangeCond(CallInst *CI,
|
|||
UpperBound = 11383.0f;
|
||||
break;
|
||||
default:
|
||||
llvm_unreachable("Should be reach here");
|
||||
llvm_unreachable("Unhandled library call!");
|
||||
}
|
||||
|
||||
++NumWrappedTwoCond;
|
||||
|
@ -483,7 +483,7 @@ Value *LibCallsShrinkWrap::generateCondForPow(CallInst *CI,
|
|||
|
||||
// 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue