SuccessChanges

Summary

  1. Add missing test (details)
  2. [MC][ARM] Delete MCSection::HasData and move SHF_ARM_PURECODE logic to (details)
  3. Clang-format previous commit (details)
  4. [Coroutines] Remove corresponding phi values when apply (details)
Commit 35efef5351e3b3a4e50bcd862407ef7edc0b2166 by steveire
Add missing test
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Commit 5511861e6dc81e702587bb4d07deba35571db293 by maskray
[MC][ARM] Delete MCSection::HasData and move SHF_ARM_PURECODE logic to
ARMELFObjectWriter::addTargetSectionFlags
This simplifies the generic interface and also makes SHF_ARM_PURECODE
more robust (fixes a TODO). Inspecting MCDataFragment contents covers
more cases than MCObjectStreamer::EmitBytes.
The file was modifiedllvm/lib/MC/MCSection.cpp
The file was modifiedllvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
The file was modifiedllvm/include/llvm/MC/MCSection.h
The file was modifiedllvm/lib/MC/MCObjectStreamer.cpp
Commit 445f4d2310e751a6ab18f84b1d4ad13037ffd819 by steveire
Clang-format previous commit
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Commit 83a9321f60d837e4d41c9c08c09ab9e4c171ada4 by modocache
[Coroutines] Remove corresponding phi values when apply
simplifyTerminatorLeadingToRet
Summary: In addMustTailToCoroResumes, we set musttail on those resume
instructions that are followed by a ret instruction. This is done by
simplifyTerminatorLeadingToRet which replace a sequence of branches
leading to a ret with a clone of the ret.
However it forgets to remove corresponding PHI values that come from
basic block of replaced branch, and may cause jumpthreading pass hangs
(https://bugs.llvm.org/show_bug.cgi?id=43720)
This patch fix this issue
Test Plan: cppcoro library with O3+flto check-llvm
Reviewers: modocache, GorNishanov, lewissbaker
Reviewed By: modocache
Subscribers: mehdi_amini, EricWF, hiraditya, dexonsmith, jfb,
llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71826
Patch by junparser (JunMa)!
The file was modifiedllvm/lib/Transforms/Coroutines/CoroSplit.cpp
The file was modifiedllvm/test/Transforms/Coroutines/coro-split-musttail.ll
The file was addedllvm/test/Transforms/Coroutines/coro-split-musttail1.ll