[llvm] r233020 - Refactor: Simplify boolean expressions in R600 target
David Blaikie
dblaikie at gmail.com
Mon Mar 23 13:56:44 PDT 2015
Author: dblaikie
Date: Mon Mar 23 15:56:44 2015
New Revision: 233020
URL: http://llvm.org/viewvc/llvm-project?rev=233020&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp
Modified: llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp?rev=233020&r1=233019&r2=233020&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp Mon Mar 23 15:56:44 2015
@@ -623,7 +623,7 @@ DebugLoc AMDGPUCFGStructurizer::getLastD
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::settleLoopco
bool UseContinueLogical = ((&*ContingMBB->rbegin()) == MI);
- if (UseContinueLogical == false) {
+ if (!UseContinueLogical) {
int BranchOpcode =
TrueBranch == ContMBB ? getBranchNzeroOpcode(OldOpcode) :
getBranchZeroOpcode(OldOpcode);
More information about the llvm-commits
mailing list