mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08: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 llvm-svn: 233020
This commit is contained in:
@@ -623,7 +623,7 @@ DebugLoc AMDGPUCFGStructurizer::getLastDebugLocInBB(MachineBasicBlock *MBB) {
|
||||
for (MachineBasicBlock::iterator It = MBB->begin(); It != MBB->end();
|
||||
++It) {
|
||||
MachineInstr *instr = &(*It);
|
||||
if (instr->getDebugLoc().isUnknown() == false)
|
||||
if (!instr->getDebugLoc().isUnknown())
|
||||
DL = instr->getDebugLoc();
|
||||
}
|
||||
return DL;
|
||||
@@ -1611,7 +1611,7 @@ void AMDGPUCFGStructurizer::settleLoopcontBlock(MachineBasicBlock *ContingMBB,
|
||||
|
||||
bool UseContinueLogical = ((&*ContingMBB->rbegin()) == MI);
|
||||
|
||||
if (UseContinueLogical == false) {
|
||||
if (!UseContinueLogical) {
|
||||
int BranchOpcode =
|
||||
TrueBranch == ContMBB ? getBranchNzeroOpcode(OldOpcode) :
|
||||
getBranchZeroOpcode(OldOpcode);
|
||||
|
||||
Reference in New Issue
Block a user