diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-12-13 01:20:58 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-12-13 01:20:58 +0000 |
commit | efe995a4063dd3f414f60c6ee2f4704dbb0fad34 (patch) | |
tree | b1ed3e7960ffe3a93fd0d9d59ffb9ab0ac2f8132 /lib/CodeGen/LiveVariables.cpp | |
parent | 1124e2caef51ca440b796273999f8252ff9fbbec (diff) |
Remove unecessary if statements when looping on ImplicitDefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 7ec4d32c1e..358d5d0829 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -237,9 +237,9 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) { } // Loop over implicit defs, defining them. - if (const unsigned *ImplicitDefs = MID.ImplicitDefs) - for (unsigned i = 0; ImplicitDefs[i]; ++i) - HandlePhysRegDef(ImplicitDefs[i], MI); + for (const unsigned *ImplicitDefs = MID.ImplicitDefs; + *ImplicitDefs; ++ImplicitDefs) + HandlePhysRegDef(*ImplicitDefs, MI); // Process all explicit defs... for (unsigned i = 0; i != NumOperandsToProcess; ++i) { |