llvm.org GIT mirror llvm / 2681232
Teach ScalarEvolution about GlobalAliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80014 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6262 #include "llvm/Constants.h"
6363 #include "llvm/DerivedTypes.h"
6464 #include "llvm/GlobalVariable.h"
65 #include "llvm/GlobalAlias.h"
6566 #include "llvm/Instructions.h"
6667 #include "llvm/LLVMContext.h"
6768 #include "llvm/Operator.h"
29052906 return getIntegerSCEV(0, V->getType());
29062907 else if (isa(V))
29072908 return getIntegerSCEV(0, V->getType());
2909 else if (GlobalAlias *GA = dyn_cast(V))
2910 return GA->mayBeOverridden() ? getUnknown(V) : getSCEV(GA->getAliasee());
29082911 else
29092912 return getUnknown(V);
29102913