llvm-project/llvm/unittests/Transforms/Utils
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
..
ASanStackFrameLayoutTest.cpp
BasicBlockUtilsTest.cpp Cleanup includes: TransformsUtils 2022-03-01 21:00:07 +01:00
CMakeLists.txt [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
CallPromotionUtilsTest.cpp
CloningTest.cpp Cleanup includes: LLVMAnalysis 2022-03-01 18:01:54 +01:00
CodeExtractorTest.cpp [NFC] Add #include for constants 2022-02-23 01:23:45 -08:00
CodeMoverUtilsTest.cpp [CodeMoverUtils] Enhance isSafeToMoveBefore() when control flow equivalence is satisfied 2021-09-27 18:37:36 -04:00
DebugifyTest.cpp [Debugify] Optimize debugify original mode 2022-03-22 12:14:00 +01:00
FunctionComparatorTest.cpp
IntegerDivisionTest.cpp
LocalTest.cpp [NFC] format InstructionSimplify & lowerCaseFunctionNames 2022-06-09 16:10:08 +02:00
LoopRotationUtilsTest.cpp
LoopUtilsTest.cpp
MemTransferLowering.cpp Add support for atomic memory copy lowering 2022-04-08 10:41:31 +07:00
ModuleUtilsTest.cpp
SSAUpdaterBulkTest.cpp
ScalarEvolutionExpanderTest.cpp [SCEVExpander] Make CanonicalMode handing in isSafeToExpand() more robust (PR50506) 2022-07-14 14:41:51 +02:00
SizeOptsTest.cpp
UnrollLoopTest.cpp
VFABIUtils.cpp [NFC] Cleanup calls to CallBase::getAttribute() 2021-08-18 09:39:33 -07:00
ValueMapperTest.cpp [DebugInfo] ValueMapper impl for DIArgList respects IgnoreMissingLocals 2022-01-17 17:17:32 +00:00