[all-commits] [llvm/llvm-project] c7633d: [Attributor]: Ensure cycle info is not null when h...
Vidush Singhal via All-commits
all-commits at lists.llvm.org
Mon Jul 1 17:20:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c7633ddb28a22a9b9b8d6ee74e911c59ef7d6287
https://github.com/llvm/llvm-project/commit/c7633ddb28a22a9b9b8d6ee74e911c59ef7d6287
Author: Vidush Singhal <54336227+vidsinghal at users.noreply.github.com>
Date: 2024-07-01 (Mon, 01 Jul 2024)
Changed paths:
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
A llvm/test/Transforms/Attributor/phi_bug_pointer_info.ll
Log Message:
-----------
[Attributor]: Ensure cycle info is not null when handling PHI in AAPointerInfo (#97321)
Ensure cycle info object is not null for simple PHI case
for the test:
`llvm/test/Transforms/Attributor/phi_bug_pointer_info.ll`
Debug info Before the change:
```
Accesses by bin after update:
[8-12] : 1
- 9 - store i32 %0, ptr %field2, align 4
- c: %0 = load i32, ptr %val, align 4
[32-36] : 1
- 9 - store i32 %1, ptr %field8, align 4
- c: %1 = load i32, ptr %val2, align 4
[2147483647-4294967294] : 1
- 6 - %ret = load i32, ptr %x, align 4
- c: <unknown>
```
Debug info After the change:
```
Accesses by bin after update:
[8-12] : 2
- 9 - store i32 %0, ptr %field2, align 4
- c: %0 = load i32, ptr %val, align 4
- 6 - %ret = load i32, ptr %x, align 4
- c: <unknown>
[32-36] : 2
- 9 - store i32 %1, ptr %field8, align 4
- c: %1 = load i32, ptr %val2, align 4
- 6 - %ret = load i32, ptr %x, align 4
- c: <unknown>
```
Co-authored-by: Vidush Singhal <singhal2 at ruby964.llnl.gov>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list