aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
AgeCommit message (Expand)AuthorFilesLines
2021-08-19Revert "[CVP] processSwitch: Remove default case when switch cover all possib...Sanjay Patel1-0/+23
2021-08-18[CVP] processSwitch: Remove default case when switch cover all possible values.Jun Ma1-23/+0
2021-08-16Revert "Reland [SimplifyCFG] performBranchToCommonDestFolding(): form block-c...Roman Lebedev1-66/+9
2021-08-15Reland [SimplifyCFG] performBranchToCommonDestFolding(): form block-closed SS...Roman Lebedev1-9/+66
2021-08-15Revert "[SimplifyCFG] performBranchToCommonDestFolding(): form block-closed S...Roman Lebedev1-66/+9
2021-08-15[SimplifyCFG] performBranchToCommonDestFolding(): form block-closed SSA form ...Roman Lebedev1-9/+66
2021-08-13Reland "[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch is non-t...Roman Lebedev1-0/+5
2021-08-13[SimplifyCFG] Restart if `removeUndefIntroducingPredecessor()` made changesRoman Lebedev1-1/+2
2021-08-13Revert "[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch is non-t...Roman Lebedev1-5/+0
2021-08-12[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch is non-tautologicalRoman Lebedev1-0/+5
2021-08-12[SimplifyCFG] If FoldTwoEntryPHINode() changed things, restartRoman Lebedev1-1/+2
2021-08-10[SimpifyCFG] Remove recursion from FoldCondBranchOnPHI. NFCI.Carl Ritson1-4/+18
2021-08-05[SimpifyCFG] Speculate a store preceded by a local non-escaping loadMomchil Velikov1-0/+18
2021-08-03[SimplifyCFG] Enable switch to lookup table for more types.Craig Topper1-1/+25
2021-07-27Strip undef implying attributes when moving callsAnna Thomas1-2/+7
2021-07-26[SimplifyCFG] SwitchToLookupTable(): don't increase ret countRoman Lebedev1-15/+3
2021-07-26[SimplifyCFG] Drop support for simplifying cond branch to two (different) ret'sRoman Lebedev1-131/+0
2021-07-26[SimplifyCFG] Drop support for duplicating ret's into uncond predecessorsRoman Lebedev1-26/+2
2021-07-26[SimplifyCFG] Remove stale comment after d7378259aa, NFCReid Kleckner1-1/+0
2021-07-26[LLVM IR] Allow volatile stores to trap.Eli Friedman1-8/+0
2021-07-26[SimplifyCFG] Improve store speculation checkNikita Popov1-3/+5
2021-07-26[SimplifyCFG] Fold branch to common dest: if branch is unpredictable, prefer ...Roman Lebedev1-1/+2
2021-07-26[SimplifyCFG] Don't speculatively execute BB[s] if they are predictably not t...Roman Lebedev1-1/+27
2021-07-26[SimplifyCFG] Don't speculatively execute BB if it's predictably not takenRoman Lebedev1-0/+14
2021-07-24[NFC][SimplifyCFG] Make 'conditional block' handling more straight-forwardRoman Lebedev1-30/+17
2021-07-24[NFC][SimplifyCFG] FoldTwoEntryPHINode(): make better use of GetIfCondition()...Roman Lebedev1-12/+6
2021-07-24[NFC][BasicBlockUtils] Refactor GetIfCondition() to return the branch, not it...Roman Lebedev1-4/+6
2021-07-23[SimplifyCFG] SimplifyCondBranchToTwoReturns(): really only deal with differe...Roman Lebedev1-14/+8
2021-07-22[SimplifyCFG] FoldTwoEntryPHINode(): bailout on inverted logical and/or (PR51...Roman Lebedev1-3/+6
2021-07-21[SimplifyCFG] Fix if conversion with opaque pointersNikita Popov1-1/+3
2021-07-18[SimplifyCFG] remove unnecessary state variable; NFCSanjay Patel1-11/+8
2021-07-15[SimplifyCFG] Rerun PHI deduplication after common code sinkinkg (PR51092)Roman Lebedev1-1/+8
2021-07-13[SimplifyCFG] Fix SimplifyBranchOnICmpChain to be undef/poison safe.hyeongyu kim1-5/+10
2021-07-09Revert "Revert "Temporarily do not drop volatile stores before unreachable""Nico Weber1-0/+8
2021-07-09Revert "Temporarily do not drop volatile stores before unreachable"Roman Lebedev1-8/+0
2021-07-03[SimplifyCFG] simplifyUnreachable(): erase instructions iff they are guarante...Roman Lebedev1-32/+18
2021-07-02[NFCI][SimplifyCFG] simplifyUnreachable(): Use poison constant to represent t...Roman Lebedev1-2/+1
2021-07-02[SimplifyCFG] Volatile memory operations do not trapRoman Lebedev1-11/+8
2021-07-02Revert "https://godbolt.org/z/5vhv4K5b8"Roman Lebedev1-8/+11
2021-07-02https://godbolt.org/z/5vhv4K5b8Roman Lebedev1-11/+8
2021-06-25[NFC] Prefer ConstantRange::makeExactICmpRegion over makeAllowedICmpRegionEli Friedman1-2/+2
2021-06-20[SimplifyCFG] FoldTwoEntryPHINode(): don't fold if either block has it's addr...Roman Lebedev1-0/+5
2021-06-20[SimplifyCFG] HoistThenElseCodeToIf(): don't hoist if either block has it's a...Roman Lebedev1-0/+6
2021-06-18[CSSPGO] Undoing the concept of dangling pseudo probeHongtao Yu1-12/+5
2021-06-11[SimplifyCFG] avoid crash on degenerate loopSanjay Patel1-0/+6
2021-06-06SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI.Simon Pilgrim1-4/+0
2021-05-26[SimplifyCFG] Use make_early_inc_range() while deleting instructionsHeejin Ahn1-3/+1
2021-05-19[CSSPGO] Avoid deleting probe instruction in FoldValueComparisonIntoPredecessorswlei1-0/+4
2021-05-19[NFCI][SimplifyCFG] removeEmptyCleanup(): use DeleteDeadBlock()Roman Lebedev1-9/+8
2021-05-19[NFCI][SimplifyCFG] removeEmptyCleanup(): streamline PHI node updatingRoman Lebedev1-16/+5