llvm-project/llvm/unittests
Mircea Trofin 22a1f998f7 FunctionPropertiesAnalysis: handle callsite BBs that lose edges
There could be successors that were reached before but now are only
reachable from elsewhere in the CFG.

Suppose the following diamond CFG (lines are arrows pointing down):
    A
  /   \
 B     C
  \   /
    D
There's a call site in C that is inlined. Upon doing that, it turns out
it expands to:
   call void @llvm.trap()
   unreachable
D isn't reachable from C anymore, but we did discount it when we set up
FunctionPropertiesUpdater, so we need to re-include it here.

The patch also updates loop accounting to use LoopInfo rather than
traverse BBs.

Differential Revision: https://reviews.llvm.org/D127353
2022-06-14 15:19:44 -07:00
..
ADT ADT/ArrayRef: Add makeMutableArrayRef overloads 2022-06-09 09:59:50 +02:00
Analysis FunctionPropertiesAnalysis: handle callsite BBs that lose edges 2022-06-14 15:19:44 -07:00
AsmParser [AsmParserTest] Avoid pointer element type accesses (NFC) 2022-01-25 14:31:51 +01:00
BinaryFormat [AIX] identify big archive magic as archive. 2022-01-19 12:18:45 -05: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 [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DebugInfo [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
Debuginfod [Debuginfod] Don't depend on Content-Length. 2022-03-21 17:27:45 +00:00
Demangle [demangler] No need to space adjacent template closings 2022-05-09 06:14:44 -07:00
ExecutionEngine [C-API][ORC] Add C API to suspend lookups during definition generation. 2022-06-13 17:20:07 -07:00
FileCheck Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Frontend [NFC][Alignment] Use proper type in tests 2022-06-13 12:59:38 +00:00
FuzzMutate Revert "[FuzzMutate] Don't insert instructions after musttail call" 2022-03-16 17:29:27 +01:00
IR Revert "[Metadata] Add a resize capability to MDNodes and add a push_back interface to MDNodes" 2022-06-07 15:48:31 -07:00
InterfaceStub [ifs] Add --strip-size flag 2022-05-14 18:50:20 +00: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 Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07: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 [Binary] Make the OffloadingImage type own the memory 2022-06-07 15:56:09 -04:00
ObjectYAML [ObjectYAML][DX] Support yaml2dxcontainer 2022-06-01 15:34:00 -05:00
Option [OptTable] Reapply Improve error message output for grouped short options 2021-09-03 11:13:52 +01:00
Passes Cleanup includes: LLVMAnalysis 2022-03-01 18:01:54 +01:00
ProfileData [memprof] Keep and display symbol names in the RawMemProfReader. 2022-05-25 21:17:44 +00:00
Remarks Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
Support [SystemZ/z/OS] Fix failing dynamic library unit test. 2022-06-09 13:48:19 -04:00
TableGen [TableGen] Refactor TableGenParseFile to no longer use a callback 2022-05-11 11:55:33 -07:00
Target [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07: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 [NFC] format InstructionSimplify & lowerCaseFunctionNames 2022-06-09 16:10:08 +02:00
XRay Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
tools [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
CMakeLists.txt [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
unittest.cfg.in