llvm-project/llvm/unittests/Transforms
Nikita Popov dcf4b733ef [SCEVExpander] Make CanonicalMode handing in isSafeToExpand() more robust (PR50506)
isSafeToExpand() for addrecs depends on whether the SCEVExpander
will be used in CanonicalMode. At least one caller currently gets
this wrong, resulting in PR50506.

Fix this by a) making the CanonicalMode argument on the freestanding
functions required and b) adding member functions on SCEVExpander
that automatically take the SCEVExpander mode into account. We can
use the latter variant nearly everywhere, and thus make sure that
there is no chance of CanonicalMode mismatch.

Fixes https://github.com/llvm/llvm-project/issues/50506.

Differential Revision: https://reviews.llvm.org/D129630
2022-07-14 14:41:51 +02:00
..
IPO [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
Scalar [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
Utils [SCEVExpander] Make CanonicalMode handing in isSafeToExpand() more robust (PR50506) 2022-07-14 14:41:51 +02:00
Vectorize [VPlan] Update unit test after 569d84fe99. 2022-06-23 13:44:41 +02:00
CMakeLists.txt