llvm-project/llvm/unittests
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
..
ADT [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Analysis [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
AsmParser [AsmParserTest] Avoid pointer element type accesses (NFC) 2022-01-25 14:31:51 +01:00
BinaryFormat [llvm] Use has_value instead of hasValue (NFC) 2022-07-12 22:25:42 -07:00
Bitcode [X86][MS] Change the alignment of f80 to 16 bytes on Windows 32bits to match with ICC 2022-01-23 09:58:46 +08:00
Bitstream PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
CodeGen [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
DebugInfo [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Debuginfod [llvm] [Debuginfod] Add HTTP Server to Debuginfod library. 2022-07-06 18:56:54 +00:00
Demangle [demangler] No need to space adjacent template closings 2022-05-09 06:14:44 -07:00
ExecutionEngine Revert "[ORC] Add a shared-memory based orc::MemoryMapper." 2022-07-14 09:52:57 +00:00
FileCheck [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Frontend [OMPIRBuilder] Add support for simdlen clause 2022-07-11 13:29:06 -04:00
FuzzMutate Revert "[FuzzMutate] Don't insert instructions after musttail call" 2022-03-16 17:29:27 +01:00
IR [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
InterfaceStub [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
LineEditor
Linker Revert "[OpenMP][NFC] Add missing virtual destructor to silence warning" 2022-03-25 16:07:11 -05:00
MC [X86][Disassembler] Fix displacement operand size for symbolizer 2022-06-13 00:14:43 -07:00
MI [LiveIntervals] Fix incorrect range (re)construction from subranges. 2022-07-08 16:07:19 +03:00
MIR [X86] Set Int_MemBarrier as a meta-instruction 2022-03-18 13:12:28 +08:00
ObjCopy Fix for buildbot failure: https://lab.llvm.org/buildbot#builders/110/builds/11051 2022-03-09 14:26:46 +03:00
Object [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
ObjectYAML [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Option [OptTable] Reapply Improve error message output for grouped short options 2021-09-03 11:13:52 +01:00
Passes Remove unnecessary includes of ManagedStatic.h 2022-07-07 14:29:20 +02:00
ProfileData [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Remarks Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
Support Revert "[llvm] add zstd to llvm::compression namespace" 2022-07-14 01:23:20 -07:00
TableGen [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Target [AArch64] Fix subtarget features for tests. NFC 2022-07-12 11:03:40 +01:00
Testing Testing: Make TempFile safe to move; test Temp{Dir,File,Link} 2022-03-01 13:45:51 -08:00
TextAPI Replace PlatformKind with PlatformType. 2022-01-13 09:23:49 -08:00
Transforms [SCEVExpander] Make CanonicalMode handing in isSafeToExpand() more robust (PR50506) 2022-07-14 14:41:51 +02:00
XRay Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
tools [MCA][unittest] Hot fix for -Wpessimizing-move on test harness 2022-06-24 18:31:27 -07:00
CMakeLists.txt [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
unittest.cfg.in