[llvm-commits] [llvm] r61950 - in /llvm/trunk: include/llvm/CodeGen/RegisterCoalescer.h lib/CodeGen/BranchFolding.cpp lib/CodeGen/MachineBasicBlock.cpp
Dan Gohman
gohman at apple.com
Thu Jan 8 14:19:34 PST 2009
Author: djg
Date: Thu Jan 8 16:19:34 2009
New Revision: 61950
URL: http://llvm.org/viewvc/llvm-project?rev=61950&view=rev
Log:
Delete unnecessary parens around return values.
Modified:
llvm/trunk/include/llvm/CodeGen/RegisterCoalescer.h
llvm/trunk/lib/CodeGen/BranchFolding.cpp
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/include/llvm/CodeGen/RegisterCoalescer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/RegisterCoalescer.h?rev=61950&r1=61949&r2=61950&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/RegisterCoalescer.h (original)
+++ llvm/trunk/include/llvm/CodeGen/RegisterCoalescer.h Thu Jan 8 16:19:34 2009
@@ -91,7 +91,7 @@
/// int getNumberOfInterferences(const LiveInterval &a) const {
/// IntervalSet intervals;
/// getInterferences(intervals, a);
- /// return(intervals.size());
+ /// return intervals.size();
/// };
/// };
///
@@ -114,7 +114,7 @@
virtual bool interfere(const LiveInterval &a,
const LiveInterval &b) const {
// A naive test
- return(a.overlaps(b));
+ return a.overlaps(b);
};
/// Return the set of intervals that interfere with this one.
Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchFolding.cpp?rev=61950&r1=61949&r2=61950&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Thu Jan 8 16:19:34 2009
@@ -463,7 +463,7 @@
#ifndef _GLIBCXX_DEBUG
assert(0 && "Predecessor appears twice");
#endif
- return(false);
+ return false;
}
}
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=61950&r1=61949&r2=61950&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Thu Jan 8 16:19:34 2009
@@ -221,7 +221,7 @@
MachineBasicBlock::removeSuccessor(succ_iterator I) {
assert(I != Successors.end() && "Not a current successor!");
(*I)->removePredecessor(this);
- return(Successors.erase(I));
+ return Successors.erase(I);
}
void MachineBasicBlock::addPredecessor(MachineBasicBlock *pred) {
More information about the llvm-commits
mailing list