Commit 9978f6a
committed
[CostModel][X86] Reduce the extra costs for ICMP complex predicates when an operand is constant
In most cases, SETCC lowering will be able to simplify/commute the comparison by adjusting the constant.
TODO: We still need to adjust ExtraCost based on CostKind
Fixes llvm#801221 parent c16d0d1 commit 9978f6a
File tree
3 files changed
+892
-911
lines changed- llvm
- lib/Target/X86
- test
- Analysis/CostModel/X86
- Transforms/SimplifyCFG/X86
3 files changed
+892
-911
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3090 | 3090 | | |
3091 | 3091 | | |
3092 | 3092 | | |
| 3093 | + | |
3093 | 3094 | | |
3094 | 3095 | | |
3095 | 3096 | | |
| |||
3102 | 3103 | | |
3103 | 3104 | | |
3104 | 3105 | | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
3105 | 3110 | | |
3106 | 3111 | | |
3107 | 3112 | | |
3108 | | - | |
| 3113 | + | |
3109 | 3114 | | |
3110 | 3115 | | |
3111 | 3116 | | |
3112 | 3117 | | |
3113 | | - | |
| 3118 | + | |
3114 | 3119 | | |
3115 | 3120 | | |
3116 | 3121 | | |
3117 | 3122 | | |
3118 | 3123 | | |
3119 | | - | |
| 3124 | + | |
3120 | 3125 | | |
3121 | 3126 | | |
3122 | 3127 | | |
| |||
3127 | 3132 | | |
3128 | 3133 | | |
3129 | 3134 | | |
3130 | | - | |
| 3135 | + | |
3131 | 3136 | | |
3132 | 3137 | | |
3133 | 3138 | | |
| |||
0 commit comments