diff options
author | Steven Perron <stevenperron@google.com> | 2017-12-11 13:10:24 -0500 |
---|---|---|
committer | Steven Perron <stevenperron@google.com> | 2017-12-19 14:21:04 -0500 |
commit | b86eb6842b4d95860828c58fd6f44a91801334be (patch) | |
tree | ae899a77a83a307f4f42e8c002aa311f9bcd13ea /Android.mk | |
parent | 8135dd6375b7b99442089bd1352d5c4f4db8aecc (diff) |
Convert private variables to function scope.
When a private variable is used in a single function, it can be
converted to a function scope variable in that function. This adds a
pass that does that. The pass can be enabled using the option
`--private-to-local`.
This transformation allows other transformations to act on these
variables.
Also moved `FindPointerToType` from the inline class to the type manager.
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -94,6 +94,7 @@ SPVTOOLS_OPT_SRC_FILES := \ source/opt/optimizer.cpp \ source/opt/pass.cpp \ source/opt/pass_manager.cpp \ + source/opt/private_to_local_pass.cpp \ source/opt/propagator.cpp \ source/opt/redundancy_elimination.cpp \ source/opt/remove_duplicates_pass.cpp \ |