Commit cff5a43
authored
[AArch64][PAC][GISel] Add missing clobbering info to LOADgotAUTH (#157433)
When LOADgotAUTH is selected by GlobalISel, the existing MachineInstr is
updated in-place instead of constructing a fresh instance by calling
MIB.buildInstr(). This way, implicit-def operands have to be added
manually for machine passes to take them into account.
This patch fixes miscompilation possibility observed when compiling with
GlobalISel enabled or at -O0 optimization level.1 parent 1d8568c commit cff5a43
File tree
2 files changed
+26
-3
lines changed- llvm
- lib/Target/AArch64/GISel
- test/CodeGen/AArch64/GlobalISel
2 files changed
+26
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2914 | 2914 | | |
2915 | 2915 | | |
2916 | 2916 | | |
2917 | | - | |
2918 | | - | |
2919 | | - | |
| 2917 | + | |
| 2918 | + | |
2920 | 2919 | | |
| 2920 | + | |
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments