Commit 704fc65
authored
[SelectionDAG] Prefer to use ATOMIC_LOAD extension type over getExtendForAtomicOps() in computeKnownBits/ComputeNumSignBits. (#136600)
If an ATOMIC_LOAD has ZEXTLOAD/SEXTLOAD extension type we should trust
that over getExtendForAtomicOps().
SystemZ is the only target that uses setAtomicLoadExtAction and they
return ANY_EXTEND from getExtendForAtomicOps(). So I'm not sure there's
a way to get a contradiction currently.
Note, type legalization uses getExtendForAtomicOps() when promoting
ATOMIC_LOAD so we may not need to check getExtendForAtomicOps() for
ATOMIC_LOAD. I have not done much investigating of this.1 parent 863ead2 commit 704fc65
1 file changed
+26
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4406 | 4406 | | |
4407 | 4407 | | |
4408 | 4408 | | |
4409 | | - | |
4410 | | - | |
4411 | 4409 | | |
4412 | 4410 | | |
4413 | | - | |
4414 | | - | |
4415 | | - | |
4416 | | - | |
| 4411 | + | |
| 4412 | + | |
| 4413 | + | |
| 4414 | + | |
| 4415 | + | |
| 4416 | + | |
| 4417 | + | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
4417 | 4422 | | |
4418 | 4423 | | |
4419 | 4424 | | |
| |||
5252 | 5257 | | |
5253 | 5258 | | |
5254 | 5259 | | |
5255 | | - | |
| 5260 | + | |
5256 | 5261 | | |
5257 | 5262 | | |
| 5263 | + | |
5258 | 5264 | | |
5259 | 5265 | | |
5260 | | - | |
5261 | | - | |
5262 | | - | |
5263 | | - | |
| 5266 | + | |
| 5267 | + | |
5264 | 5268 | | |
5265 | | - | |
5266 | | - | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
5267 | 5273 | | |
5268 | | - | |
| 5274 | + | |
5269 | 5275 | | |
| 5276 | + | |
5270 | 5277 | | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
5271 | 5283 | | |
5272 | 5284 | | |
5273 | 5285 | | |
| |||
0 commit comments