diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-23 20:56:44 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-23 20:56:44 +0000 |
| commit | 4eaa79c8d9bf0c8b8734d2f233117c8d964fb7d1 (patch) | |
| tree | 0e097c2c21b8811bc60a706d79c46fbb72f18edd | |
| parent | 98253306f3fb96875c5d3caf3950c3a3e0e24000 (diff) | |
| download | bcm5719-llvm-4eaa79c8d9bf0c8b8734d2f233117c8d964fb7d1.tar.gz bcm5719-llvm-4eaa79c8d9bf0c8b8734d2f233117c8d964fb7d1.zip | |
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
| -rw-r--r-- | llvm/lib/Target/R600/AMDILCFGStructurizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp b/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp index 36b4d24f9ea..ee6551b6231 100644 --- a/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp +++ b/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp @@ -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); |

