llvm-project/llvm/lib/Transforms
Fangrui Song 13a97305ba [JumpThreading] Skip unconditional PredBB when threading jumps through two basic blocks
Fixes https://bugs.llvm.org/show_bug.cgi?id=44922 (caused by 4698bf145d)

ThreadThroughTwoBasicBlocks assumes PredBBBranch is conditional. The following code can segfault.

  AddPHINodeEntriesForMappedBlock(PredBBBranch->getSuccessor(1), PredBB, NewBB,
                                  ValueMapping);

We can also allow unconditional PredBB, but the produced code is not
better.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D74747
2020-02-18 11:01:46 -08:00
..
AggressiveInstCombine Revert "[AggressiveInstCombine] Add support for ICmp instr that feeds a select intsr's condition operand." 2020-02-12 15:04:49 +02:00
CFGuard Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Coroutines Revert new pass manager coro-split and coro-elide 2020-02-17 23:55:10 -05:00
Hello Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IPO [HotColdSplit] Mark entire function cold when entry block is cold 2020-02-17 15:57:50 -08:00
InstCombine [InstCombine] Fix worklist management when simplifying demanded bits 2020-02-18 17:55:40 +01:00
Instrumentation [IRBuilder] Delete copy constructor 2020-02-17 18:14:48 +01:00
ObjCARC [ObjC][ARC] Keep track of phis that have been discovered to avoid an 2020-02-07 20:33:11 -08:00
Scalar [JumpThreading] Skip unconditional PredBB when threading jumps through two basic blocks 2020-02-18 11:01:46 -08:00
Utils Add Query API for llvm.assume holding attributes 2020-02-18 19:42:07 +01:00
Vectorize [NFC] Silence compiler warning [-Wmissing-braces]. 2020-02-18 10:37:12 -08:00
CMakeLists.txt Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
LLVMBuild.txt Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00