forked from OSchip/llvm-project
Fix a couple of redundant conditional expressions (PR27283, PR28282)
llvm-svn: 265987
This commit is contained in:
parent
8396f72f7b
commit
e9134897f4
|
@ -520,9 +520,9 @@ void StackMaps::emitCallsiteEntries(MCStreamer &OS) {
|
|||
void StackMaps::serializeToStackMapSection() {
|
||||
(void)WSMP;
|
||||
// Bail out if there's no stack map data.
|
||||
assert((!CSInfos.empty() || (CSInfos.empty() && ConstPool.empty())) &&
|
||||
assert((!CSInfos.empty() || ConstPool.empty()) &&
|
||||
"Expected empty constant pool too!");
|
||||
assert((!CSInfos.empty() || (CSInfos.empty() && FnStackSize.empty())) &&
|
||||
assert((!CSInfos.empty() || FnStackSize.empty()) &&
|
||||
"Expected empty function record too!");
|
||||
if (CSInfos.empty())
|
||||
return;
|
||||
|
|
|
@ -5076,7 +5076,7 @@ bool SimplifyCFGOpt::SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder){
|
|||
// in the back-end.)
|
||||
BasicBlock::iterator I = BB->getFirstNonPHIOrDbg()->getIterator();
|
||||
if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
|
||||
(!LoopHeaders || (LoopHeaders && !LoopHeaders->count(BB))) &&
|
||||
(!LoopHeaders || !LoopHeaders->count(BB)) &&
|
||||
TryToSimplifyUncondBranchFromEmptyBlock(BB))
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue