mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 07:31:32 +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 StackMaps::serializeToStackMapSection() {
|
||||||
(void)WSMP;
|
(void)WSMP;
|
||||||
// Bail out if there's no stack map data.
|
// 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!");
|
"Expected empty constant pool too!");
|
||||||
assert((!CSInfos.empty() || (CSInfos.empty() && FnStackSize.empty())) &&
|
assert((!CSInfos.empty() || FnStackSize.empty()) &&
|
||||||
"Expected empty function record too!");
|
"Expected empty function record too!");
|
||||||
if (CSInfos.empty())
|
if (CSInfos.empty())
|
||||||
return;
|
return;
|
||||||
|
@ -5076,7 +5076,7 @@ bool SimplifyCFGOpt::SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder){
|
|||||||
// in the back-end.)
|
// in the back-end.)
|
||||||
BasicBlock::iterator I = BB->getFirstNonPHIOrDbg()->getIterator();
|
BasicBlock::iterator I = BB->getFirstNonPHIOrDbg()->getIterator();
|
||||||
if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
|
if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
|
||||||
(!LoopHeaders || (LoopHeaders && !LoopHeaders->count(BB))) &&
|
(!LoopHeaders || !LoopHeaders->count(BB)) &&
|
||||||
TryToSimplifyUncondBranchFromEmptyBlock(BB))
|
TryToSimplifyUncondBranchFromEmptyBlock(BB))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user