OSDN Git Service

RegisterScavenging: Code cleanup; NFC
authorMatthias Braun <matze@braunis.de>
Thu, 30 Jun 2016 00:23:54 +0000 (00:23 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 30 Jun 2016 00:23:54 +0000 (00:23 +0000)
commit6b50e125f309c7717a0dc42f126a069d8a693ffc
treeccf995a6157bf09cbae8896fd8f387b45d010a33
parente1a95d05f2c28cc618506f27a5efea1a4d1990d8
RegisterScavenging: Code cleanup; NFC

- Use range based for loops
- No need for some !Reg checks: isPhysicalRegister() reports false for
  NoRegister anyway
- Do not repeat function name in documentation comment.
- Do not repeat documentation comment in implementation when we already
  have one at the declaration.
- Factor some common subexpressions out.
- Change file comments to use doxygen syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274194 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterScavenging.h
lib/CodeGen/RegisterScavenging.cpp