Commit 6e491cd
committed
[SelectionDAG] Inverted args for PTRADD on getMemBasePlusOffset()
By allowing getMemBasePlusOffset() to know whether its use for regular
ADDs does not take pointer first and offset second, the generation of
PTRADD on enabled targets can be done correctly, with the arguments
inverted.
This modification is to avoid changing the generation of some ADDs,
thus requiring the rewrite of several tests for several architectures.1 parent fb33270 commit 6e491cd
File tree
4 files changed
+15
-32
lines changed- llvm
- include/llvm/CodeGen
- lib/CodeGen/SelectionDAG
4 files changed
+15
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
| 1075 | + | |
| 1076 | + | |
1076 | 1077 | | |
1077 | 1078 | | |
1078 | 1079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3970 | 3970 | | |
3971 | 3971 | | |
3972 | 3972 | | |
3973 | | - | |
3974 | | - | |
3975 | | - | |
3976 | | - | |
3977 | | - | |
3978 | | - | |
3979 | | - | |
3980 | | - | |
| 3973 | + | |
3981 | 3974 | | |
3982 | 3975 | | |
3983 | 3976 | | |
| |||
3988 | 3981 | | |
3989 | 3982 | | |
3990 | 3983 | | |
3991 | | - | |
3992 | | - | |
3993 | | - | |
3994 | | - | |
3995 | | - | |
3996 | | - | |
3997 | | - | |
3998 | | - | |
3999 | | - | |
| 3984 | + | |
| 3985 | + | |
4000 | 3986 | | |
4001 | 3987 | | |
4002 | 3988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8062 | 8062 | | |
8063 | 8063 | | |
8064 | 8064 | | |
8065 | | - | |
| 8065 | + | |
| 8066 | + | |
8066 | 8067 | | |
8067 | 8068 | | |
8068 | 8069 | | |
8069 | 8070 | | |
8070 | 8071 | | |
8071 | 8072 | | |
8072 | | - | |
| 8073 | + | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
| 8077 | + | |
8073 | 8078 | | |
8074 | 8079 | | |
8075 | 8080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4499 | 4499 | | |
4500 | 4500 | | |
4501 | 4501 | | |
4502 | | - | |
4503 | | - | |
4504 | | - | |
4505 | | - | |
4506 | | - | |
4507 | | - | |
4508 | | - | |
4509 | | - | |
4510 | | - | |
4511 | | - | |
4512 | | - | |
4513 | | - | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
4514 | 4505 | | |
4515 | 4506 | | |
4516 | 4507 | | |
| |||
0 commit comments