mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 08:12:12 +00:00
Fix a couple of redundant conditional expressions (PR27283, PR28282)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3fc3d19a4
commit
683020d01d
@ -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…
x
Reference in New Issue
Block a user