Commit cbf804e
[SILOpt][OSLog] Skip constant folding StaticString in the
OSLogOptimization pass
The OSLogOptimization pass constant evaluates and folds SIL instructions
that are inlined from the construction of the string interpolations passed
to the log calls, which enables replacing the dynamic format string construction
with a static format string. In addition to folding constant strings, it also folds
constant integers and arrays whose elements are constants. This change makes it
skip folding static strings, since they are already efficiently represented.
rdar://1460284381 parent 1bd0cd7 commit cbf804e
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
941 | 951 | | |
942 | 952 | | |
943 | 953 | | |
| |||
976 | 986 | | |
977 | 987 | | |
978 | 988 | | |
979 | | - | |
980 | 989 | | |
981 | 990 | | |
982 | 991 | | |
| |||
0 commit comments