1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/include/llvm/Transforms
Nico Weber fdced47a40 Teach GlobalDCE how to remove empty global_ctor entries.
This moves most of GlobalOpt's constructor optimization
code out of GlobalOpt into Transforms/Utils/CDtorUtils.{h,cpp}. The
public interface is a single function OptimizeGlobalCtorsList() that
takes a predicate returning which constructors to remove.

GlobalOpt calls this with a function that statically evaluates all
constructors, just like it did before. This part of the change is
behavior-preserving.

Also add a call to this from GlobalDCE with a filter that removes global
constructors that contain a "ret" instruction and nothing else – this
fixes PR19590.

llvm-svn: 207856
2014-05-02 18:35:25 +00:00
..
IPO PMBuilder: Expose an option to disable tail calls 2014-04-18 01:05:15 +00:00
Utils Teach GlobalDCE how to remove empty global_ctor entries. 2014-05-02 18:35:25 +00:00
Instrumentation.h [C++] Use 'nullptr'. Transforms edition. 2014-04-25 05:29:35 +00:00
IPO.h Revert "Reapply "LTO: add API to set strategy for -internalize"" 2014-04-02 22:05:57 +00:00
ObjCARC.h
Scalar.h Add an optimization that does CSE in a group of similar GEPs. 2014-05-01 18:38:36 +00:00
Vectorize.h Allow vectorization of bit intrinsics in BB Vectorizer. 2014-04-25 03:33:48 +00:00