mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Fix comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1940,9 +1940,8 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
|
|||||||
const SmallPtrSet<const PHINode*, 16> &PHIUsers,
|
const SmallPtrSet<const PHINode*, 16> &PHIUsers,
|
||||||
const GlobalStatus &GS) {
|
const GlobalStatus &GS) {
|
||||||
// If this is a first class global and has only one accessing function
|
// If this is a first class global and has only one accessing function
|
||||||
// and this function is main (which we know is not recursive we can make
|
// and this function is main (which we know is not recursive), we replace
|
||||||
// this global a local variable) we replace the global with a local alloca
|
// the global with a local alloca in this function.
|
||||||
// in this function.
|
|
||||||
//
|
//
|
||||||
// NOTE: It doesn't make sense to promote non single-value types since we
|
// NOTE: It doesn't make sense to promote non single-value types since we
|
||||||
// are just replacing static memory to stack memory.
|
// are just replacing static memory to stack memory.
|
||||||
|
Reference in New Issue
Block a user