6 Commits

Author SHA1 Message Date
Anshil Gandhi
39bfdb7f33
[GlobalOpt] Precommit tests for PR84694 (#87443)
PR link: https://github.com/llvm/llvm-project/pull/84694
2024-04-18 16:07:08 -06:00
Nikita Popov
2d69827c5c [Transforms] Convert tests to opaque pointers (NFC) 2024-02-05 11:57:34 +01:00
Florian Hahn
d94e8479fc
[GlobalOpt] Extend CleanupPointerRootUsers to handle CE users.
Extend CleanupPointerRootUsers to iterate over a worklist, add users of
constant expressions to the worklist to enable additional cleanups.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D144468
2023-03-02 10:12:24 +01:00
Florian Hahn
c34936465c
[GlobalOpt] Split CleanupPointerRootUsers test with constant exprs.
Split tests for D144468. Adding a test with an icmp constant expression
stopped CleanupPointerRootUsers from being called. Move it to a
separate test.
2023-02-28 11:40:37 +01:00
Florian Hahn
7f51145b1b
[GlobalOpt] Add tests with non-GEP ConstExpr.
Extra tests for CleanupPointerRootUsers with non-GEP constant
expressions for D144468.
2023-02-21 17:17:18 +00:00
Florian Hahn
9f5ae702ed
[GlobalOpt] Add tests for missed CleanupPointerRootUsers opportunity. 2023-02-21 11:04:09 +00:00