Commit 4ebd202
authored
[LegalizeTypes][X86] Use getShiftAmountConstant in ExpandIntRes_SIGN_EXTEND. (llvm#158388)
This ensures we don't need to fixup the shift amount later.
Unfortunately, this enabled the
(SRA (SHL X, ShlConst), SraConst) -> (SRA (sext_in_reg X), SraConst -
ShlConst) combine in combineShiftRightArithmetic for some cases in
is_fpclass-fp80.ll. So we need to also update checkSignTestSetCCCombine
to look through sign_extend_inreg to prevent a regression.1 parent 004f209 commit 4ebd202
File tree
2 files changed
+10
-7
lines changed- llvm/lib
- CodeGen/SelectionDAG
- Target/X86
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5088 | 5088 | | |
5089 | 5089 | | |
5090 | 5090 | | |
5091 | | - | |
5092 | | - | |
5093 | | - | |
| 5091 | + | |
| 5092 | + | |
5094 | 5093 | | |
5095 | 5094 | | |
5096 | 5095 | | |
| |||
5123 | 5122 | | |
5124 | 5123 | | |
5125 | 5124 | | |
5126 | | - | |
5127 | | - | |
| 5125 | + | |
| 5126 | + | |
5128 | 5127 | | |
5129 | 5128 | | |
5130 | 5129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48396 | 48396 | | |
48397 | 48397 | | |
48398 | 48398 | | |
48399 | | - | |
48400 | | - | |
| 48399 | + | |
| 48400 | + | |
48401 | 48401 | | |
48402 | 48402 | | |
48403 | 48403 | | |
48404 | 48404 | | |
48405 | 48405 | | |
| 48406 | + | |
| 48407 | + | |
| 48408 | + | |
| 48409 | + | |
48406 | 48410 | | |
48407 | 48411 | | |
48408 | 48412 | | |
| |||
0 commit comments