aboutsummaryrefslogtreecommitdiff
path: root/test/opt/reduce_load_size_test.cpp
AgeCommit message (Collapse)Author
2020-07-08Preserve OpenCL.100.DebugInfo in reduce-load-size pass (#3492)Jaebaek Seo
The decision to reduce the load must be not affected by debug instructions. For example, even when a DebugValue references a result id of a loaded composite value, this change lets the reduce-load-size pass reduce the load if the full composite value is not used anywhere other than the DebugValue.
2019-10-17Disallow use of OpCompositeExtract/OpCompositeInsert with no indices (#2980)Jakub Kuderski
2019-01-03Have replace load size handle extact with no index. (#2261)Steven Perron
Fixes https://crbug.com/917774
2018-10-04Make EFFCEE required (#1943)Steven Perron
Fixes #1912. Remove the non-effcee build as EFFCEE is now required.
2018-08-03Cleanup includes. (#1795)dan sinclair
This Cl cleans up the include paths to be relative to the top level directory. Various include-what-you-use fixes have been added.
2018-07-11Move tests into namespaces (#1689)dan sinclair
This CL moves the test into namespaces based on their directories.
2018-05-16Fix getting operand without checking opcode.Steven Perron
Fixes https://github.com/KhronosGhttps://github.com/KhronosGroup/SPIRV-Tools/issues/1559roup/SPIRV-Tools/issues/1559. There is an load of an operand of an instruction that was suppose to be only for the OpCompositeExtract case. However, an error caused it to be loaded for every opcode, even those that do not have an operand in that position. We fix up that bug, and a couple other things noticed that the same time.
2018-05-14Add pass to fold a load feeding an extract.Steven Perron
We have already disabled common uniform elimination because it created sequences of loads an entire uniform object, then we extract just a single element. This caused problems in some drivers, and is just generally slow because it loads more memory than needed. However, there are other way to get into this situation, so I've added a pass that looks specifically for this pattern and removes it when only a portion of the load is used. Fixes #1547.