Files
swift-mirror/lib/SILOptimizer/Transforms/SimplifyCFG.cpp
Erik Eckstein 4f8cccff68 SimplifyCFG: do constant folding also in SimplifyCFG.
This enables to optimize chains of constant-foldable terminal instructions, for which we would have needed multiple ConstantPropagaion-SimplifyCFG pass pairs in the pipeline otherwise.
See the test file for an example.
2018-01-19 11:32:33 -08:00

123 KiB