When splitting module with preserving locals, we currently do not handle case of global alias being separated with its aliasee.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Utils/SplitModule.cpp | ||
---|---|---|
94 | An aliasee can be something other than a GlobalValue (for example, it could be a ConstantInt or a GEP ConstantExpr). I think what you want here is getBaseObject. |
Comment Actions
Peter,
Can this be landed now...?
Thanks.
Sergei
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Comment Actions
LGTM after dealing with comment.
test/tools/llvm-split/scc-const-alias.ll | ||
---|---|---|
24 | This isn't quite what I meant. I meant e.g. @g1Alias = internal alias i8, bitcast (i32* @g1 to i8*) @constAlias = internal alias i8, inttoptr (i64 42 to i8*) |
An aliasee can be something other than a GlobalValue (for example, it could be a ConstantInt or a GEP ConstantExpr). I think what you want here is getBaseObject.