Commit 8ff934f
[PowecPC] Hint branch
The branches emitted for atomic operations after the store-conditional
are currently not hinted, even though they should be.
According to the Power10 Processor Chip User’s Manual:
` “Without static prediction, if the lock is not acquired in the first
iteration, the branch history mechanism works to update the prediction
to predict taken; that is, predict lock acquisition failure and cause
more lwarx traffic for the next iteration.”`
This patch addresses the issue by adding explicit branch hints for
atomic operations after the store-conditional.bne- for atomic operation after the store-conditional (llvm#152529)1 parent 0743f0b commit 8ff934f
File tree
8 files changed
+766
-764
lines changed- llvm
- lib/Target/PowerPC
- test/CodeGen/PowerPC
8 files changed
+766
-764
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13092 | 13092 | | |
13093 | 13093 | | |
13094 | 13094 | | |
13095 | | - | |
| 13095 | + | |
| 13096 | + | |
| 13097 | + | |
13096 | 13098 | | |
13097 | 13099 | | |
13098 | 13100 | | |
| |||
13350 | 13352 | | |
13351 | 13353 | | |
13352 | 13354 | | |
13353 | | - | |
| 13355 | + | |
13354 | 13356 | | |
13355 | 13357 | | |
13356 | 13358 | | |
| |||
14181 | 14183 | | |
14182 | 14184 | | |
14183 | 14185 | | |
14184 | | - | |
| 14186 | + | |
14185 | 14187 | | |
14186 | 14188 | | |
14187 | 14189 | | |
| |||
14193 | 14195 | | |
14194 | 14196 | | |
14195 | 14197 | | |
14196 | | - | |
| 14198 | + | |
14197 | 14199 | | |
14198 | 14200 | | |
14199 | 14201 | | |
| |||
0 commit comments