Clean up some whitespace and comments. No functionality change.

llvm-svn: 149845
This commit is contained in:
Nick Lewycky 2012-02-05 19:48:37 +00:00
parent b97841e981
commit bbd1156b95
1 changed files with 13 additions and 13 deletions

View File

@ -156,10 +156,10 @@ struct GlobalStatus {
} }
// SafeToDestroyConstant - It is safe to destroy a constant iff it is only used /// SafeToDestroyConstant - It is safe to destroy a constant iff it is only used
// by constants itself. Note that constants cannot be cyclic, so this test is /// by constants itself. Note that constants cannot be cyclic, so this test is
// pretty easy to implement recursively. /// pretty easy to implement recursively.
// ///
static bool SafeToDestroyConstant(const Constant *C) { static bool SafeToDestroyConstant(const Constant *C) {
if (isa<GlobalValue>(C)) return false; if (isa<GlobalValue>(C)) return false;
@ -1474,7 +1474,7 @@ static bool TryToOptimizeStoreOfMallocToGlobal(GlobalVariable *GV,
// We can't optimize this if the malloc itself is used in a complex way, // We can't optimize this if the malloc itself is used in a complex way,
// for example, being stored into multiple globals. This allows the // for example, being stored into multiple globals. This allows the
// malloc to be stored into the specified global, loaded setcc'd, and // malloc to be stored into the specified global, loaded icmp'd, and
// GEP'd. These are all things we could transform to using the global // GEP'd. These are all things we could transform to using the global
// for. // for.
SmallPtrSet<const PHINode*, 8> PHIs; SmallPtrSet<const PHINode*, 8> PHIs;