mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Refactor: Simplify boolean expressions in R600 target
Simplify boolean expressions with `true` and `false` using `clang-tidy` Patch by Richard Thomson. Differential Revision: http://reviews.llvm.org/D8520 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -623,7 +623,7 @@ DebugLoc AMDGPUCFGStructurizer::getLastDebugLocInBB(MachineBasicBlock *MBB) {
|
|||||||
for (MachineBasicBlock::iterator It = MBB->begin(); It != MBB->end();
|
for (MachineBasicBlock::iterator It = MBB->begin(); It != MBB->end();
|
||||||
++It) {
|
++It) {
|
||||||
MachineInstr *instr = &(*It);
|
MachineInstr *instr = &(*It);
|
||||||
if (instr->getDebugLoc().isUnknown() == false)
|
if (!instr->getDebugLoc().isUnknown())
|
||||||
DL = instr->getDebugLoc();
|
DL = instr->getDebugLoc();
|
||||||
}
|
}
|
||||||
return DL;
|
return DL;
|
||||||
@@ -1611,7 +1611,7 @@ void AMDGPUCFGStructurizer::settleLoopcontBlock(MachineBasicBlock *ContingMBB,
|
|||||||
|
|
||||||
bool UseContinueLogical = ((&*ContingMBB->rbegin()) == MI);
|
bool UseContinueLogical = ((&*ContingMBB->rbegin()) == MI);
|
||||||
|
|
||||||
if (UseContinueLogical == false) {
|
if (!UseContinueLogical) {
|
||||||
int BranchOpcode =
|
int BranchOpcode =
|
||||||
TrueBranch == ContMBB ? getBranchNzeroOpcode(OldOpcode) :
|
TrueBranch == ContMBB ? getBranchNzeroOpcode(OldOpcode) :
|
||||||
getBranchZeroOpcode(OldOpcode);
|
getBranchZeroOpcode(OldOpcode);
|
||||||
|
Reference in New Issue
Block a user