diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-02 18:20:45 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-02 18:20:45 +0000 |
commit | ecefe5a81fd01922185afdd4f47e8ff231e34a81 (patch) | |
tree | ccec2ae513d2b045e7269505776ed1e6300a0f89 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 7a2a5ce0589f8ac9b5c6ca8e7bf202061f7565aa (diff) | |
download | llvm-ecefe5a81fd01922185afdd4f47e8ff231e34a81.zip llvm-ecefe5a81fd01922185afdd4f47e8ff231e34a81.tar.gz llvm-ecefe5a81fd01922185afdd4f47e8ff231e34a81.tar.bz2 |
Fix Clang-tidy readability-redundant-control-flow warnings; other minor fixes.
Differential revision: http://reviews.llvm.org/D16793
llvm-svn: 259539
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index c6bae24..e8009cc 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -50,6 +50,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetSubtargetInfo.h" + using namespace llvm; #define DEBUG_TYPE "twoaddrinstr" @@ -539,7 +540,6 @@ regsAreCompatible(unsigned RegA, unsigned RegB, const TargetRegisterInfo *TRI) { return TRI->regsOverlap(RegA, RegB); } - /// Return true if it's potentially profitable to commute the two-address /// instruction that's being processed. bool @@ -808,7 +808,6 @@ void TwoAddressInstructionPass::processCopy(MachineInstr *MI) { } Processed.insert(MI); - return; } /// If there is one more local instruction that reads 'Reg' and it kills 'Reg, |