In anticipation of D104365 that adds support for constant integers, this adds and option to enable specialisation for constant globals and function pointers. This more fine grain control may also be useful for testing.
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp | ||
---|---|---|
488 | When would V != A become false? It looks always true to me. BTW, since !Solver.getLatticeValueFor(V).isConstant() would be true for normal constant, it wouldn't run into the following condition in my minds. |
When would V != A become false? It looks always true to me.
BTW, since !Solver.getLatticeValueFor(V).isConstant() would be true for normal constant, it wouldn't run into the following condition in my minds.