Files
swift-mirror/include/swift/SILOptimizer/Utils/PerformanceInlinerUtils.h
Roman Levenstein dd93027a0e Always inline pure functions with constant arguments
A function is pure if it has no side-effects.
If there is a call of a pure function with constant arguments, it always makes sense to inline it, because we know that the whole computation will be constant folded.
2017-05-15 11:52:36 -07:00

15 KiB