[llvm-commits] [llvm] r67407 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp lib/Transforms/Scalar/SCCP.cpp lib/Transforms/Utils/CloneFunction.cpp test/Feature/weak_constant.ll test/FrontendC/weak_constant.c

Eli Friedman eli.friedman at gmail.com
Fri Mar 20 16:00:03 PDT 2009


On Fri, Mar 20, 2009 at 2:53 PM, Duncan Sands <baldrick at free.fr> wrote:
> -      if (GV->isConstant() && !GV->isDeclaration())
> +      if (GV->isConstant() && !GV->isDeclaration() && !GV->mayBeOverridden())

Perhaps a helper in GlobalVariable would be appropriate for this predicate?

-Eli




More information about the llvm-commits mailing list