Commit d032dc3
committed
Avoid matching on byte strings
This match didn't compile to efficient code (rust-lang/rust#110870). In
the release build, this commit changes
10908: 49 8d 54 24 04 lea 0x4(%r12),%rdx
1090d: 80 3a 70 cmpb $0x70,(%rdx)
10910: 0f 85 2a 01 00 00 jne 10a40
10916: 41 80 7c 24 05 73 cmpb $0x73,0x5(%r12)
1091c: 0f 85 1e 01 00 00 jne 10a40
10922: 41 80 7c 24 06 73 cmpb $0x73,0x6(%r12)
10928: 0f 85 12 01 00 00 jne 10a40
1092e: 41 80 7c 24 07 68 cmpb $0x68,0x7(%r12)
10934: 0f 85 06 01 00 00 jne 10a40
to
108bb: 49 8d 5c 24 04 lea 0x4(%r12),%rbx
<...>
10975: 81 3b 70 73 73 68 cmpl $0x68737370,(%rbx)
1097b: 0f 84 af 02 00 00 je 10c301 parent 07d7e6d commit d032dc3
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 107 | + | |
| 108 | + | |
114 | 109 | | |
115 | 110 | | |
116 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments