AbortedChanges

Summary

  1. [PDB] Drop LF_PRECOMP from debugTypes earlier (details)
  2. Fix test after D86156. (details)
  3. [X86] Always use 16-bit displacement in 16-bit mode when there is no base or index register. (details)
  4. [NewPM] Fix 2003-02-19-LoopInfoNestingBug.ll under NPM (details)
  5. [NewPM][SCEV] Fix constant-fold-gep.ll under NPM (details)
  6. [NewPM] Fix opt-hot-cold-split.ll under NPM (details)
  7. Fully qualify some more namespace in MLIR ODS to be more friendly to dialects not defined under the mlir namespace (NFC) (details)
  8. [InstCombine] Add tests for statepoint simplification (details)
  9. [Test] Add signed version of a test (details)
  10. [clang-tidy] Fix crash in modernize-use-noexcept on uninstantiated throw class (details)
  11. [lldb] Reword CompilerType docstring to not say "generic type" (details)
  12. [MLIR][NFC] Value print update for block arguments (details)
  13. libclc: Add a __builtin to let SPIRV targets select between SW and HW FMA (details)
  14. [ThinLTO] Relax thinlto_embed_bitcode.ll check (details)
  15. [X86] Add test case for non-power of 2 scatter. NFC (details)
  16. [X86] Don't scalarize gather/scatters with non-power of 2 element counts. Widen instead. (details)
  17. [MemorySSA] Set MustDominate to true for PhiTranslation. (details)
  18. [llvm-rc] Allow omitting components from VERSIONINFO versions (details)
  19. [llvm-rc] Update a comment. NFC. (details)
  20. [llvm-rc] Lowercase the option definitions. NFC. (details)
  21. [obj2yaml] Add support for dumping the .debug_addr(v5) section. (details)
  22. [MemorySSA] Report unoptimized as None, not MayAlias. (details)
  23. [Test] Some more potential range check elimination opportunities (details)
  24. [flang] Fix docs build (details)
  25. [Test] Add positive range checks tests in addition to negative (details)
  26. Revert "[Asan] Fix false leak report" (details)
  27. Revert "[Asan] Accept __lsan_ignore_object for redzone pointer" (details)
  28. [ARM][MachineOutliner] Add calls handling. (details)
  29. [clangd] Don't use zlib when it's unavailable. (details)
  30. [ARM][LowOverheadLoops] Combine a VCMP and VPST into a VPT (details)
  31. Follow up rG635b87511ec3: forgot to add/commit the new test file. NFC. (details)
  32. [DebugInfo][flang] DISubrange support for fortran assumed size array (details)
  33. [llvm-readobj][test] - Address a forgotten review comment for D86923. (details)
  34. [clangd] Implement hot index reloading for clangd-index-server (details)
  35. [Support] Add GlobPattern::isTrivialMatchAll() (details)
  36. [LLD][ELF] Optimize linker script filename glob pattern matching NFC (details)
  37. [llvm-readobj][test] - Improve section-symbols.test (details)
Commit 1b88845ce1b7731a062c3d1fcc80d201c70e4a44 by rnk
[PDB] Drop LF_PRECOMP from debugTypes earlier

This is a minor simplification to avoid firing up a BinaryStreamReader
and CVType parser.
The file was modifiedlld/COFF/DebugTypes.cpp
The file was modifiedlld/COFF/InputFiles.cpp
Commit 3b3ca5c989f9f8e29e4b8b10e77eb08c2b822533 by asbirlea
Fix test after D86156.
The file was modifiedllvm/test/CodeGen/AMDGPU/opt-pipeline.ll
Commit 2ce1a697f037469e737db1ad41dfa14ec653ec53 by craig.topper
[X86] Always use 16-bit displacement in 16-bit mode when there is no base or index register.

Previously we only did this if the immediate fit in 16 bits, but
the GNU assembler seems to just truncate.

Fixes PR46952
The file was modifiedllvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
The file was modifiedllvm/test/MC/X86/x86-16.s
Commit 3b38062d1c8b6965ded5b6bc686db63f1a59e818 by aeubanks
[NewPM] Fix 2003-02-19-LoopInfoNestingBug.ll under NPM

Also move it to a more appropriate directory.
The file was addedllvm/test/Analysis/LoopInfo/2003-02-19-LoopInfoNestingBug.ll
The file was removedllvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
Commit b1b187a1386e5d7bfecb2a63dc8c654583684e22 by aeubanks
[NewPM][SCEV] Fix constant-fold-gep.ll under NPM
The file was modifiedllvm/test/Other/constant-fold-gep.ll
Commit bb371f8ce8c2fc77e0ab6c87d253a1d1db00d0eb by aeubanks
[NewPM] Fix opt-hot-cold-split.ll under NPM

Pin to legacy PM, there are already NPM RUN lines.
The file was modifiedllvm/test/Other/opt-hot-cold-split.ll
Commit 37c5dbb31a2fa9aa6618efe56ab0d6cd8f358957 by joker.eph
Fully qualify some more namespace in MLIR ODS to be more friendly to dialects not defined under the mlir namespace (NFC)
The file was modifiedmlir/include/mlir/Interfaces/SideEffectInterfaces.td
Commit 00f09dd4c13d7e86d07728ba03700a18e9013adf by serguei.katkov
[InstCombine] Add tests for statepoint simplification

This tests increase coverage for change introduced in D85959

Reviewers: reames, reames
Reviewed By: reames
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D87224
The file was addedllvm/test/Transforms/InstCombine/statepoint-cleanup.ll
Commit 8a04cdb510c89b8c6419d6ce1e98967d7ac9abb2 by mkazantsev
[Test] Add signed version of a test
The file was modifiedllvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
Commit 96c6d012dfe2492891d0f0450dd7cd5f3c1ca88c by Zinovy Nis
[clang-tidy] Fix crash in modernize-use-noexcept on uninstantiated throw class

Bug: https://bugs.llvm.org/show_bug.cgi?id=47446

Differential Revision: https://reviews.llvm.org/D87627
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseNoexceptCheck.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/modernize-use-noexcept-opt.cpp
Commit 757ac4ccfb8b024454b4f445a2b5c8985da5dc8a by davelee.com
[lldb] Reword CompilerType docstring to not say "generic type"

Since "generic type" has a precise meaning in some languages, reword the docstring of `CompilerType` to avoid ambiguity.

Differential Revision: https://reviews.llvm.org/D87633
The file was modifiedlldb/include/lldb/Symbol/CompilerType.h
Commit 9c40495a35a2cac89dd72db54892d6bd7a2abf0d by uday
[MLIR][NFC] Value print update for block arguments

Emit some more information when printing/dumping `Value`s of
`BlockArgument` kind. This is purely to help for debugging purposes.

Differential Revision: https://reviews.llvm.org/D87670
The file was modifiedmlir/lib/IR/AsmPrinter.cpp
Commit 291bfff5dbb70360730e91b4019f8080e4e3d7f5 by jano.vesely
libclc: Add a __builtin to let SPIRV targets select between SW and HW FMA

Reviewer: jenatali jvesely
Differential Revision: https://reviews.llvm.org/D85910
The file was modifiedlibclc/generic/lib/math/math.h
The file was modifiedlibclc/spirv64/lib/math/fma.cl
The file was modifiedlibclc/spirv/lib/math/fma.cl
Commit 8ea7ef8eda93aa144c339275fc6d9db2615a0118 by mtrofin
[ThinLTO] Relax thinlto_embed_bitcode.ll check

Fixes fuscia test [1] - the thinlto annotations may not always be there.

[1] http://lab.llvm.org:8011/builders/fuchsia-x86_64-linux/builds/11312
The file was modifiedclang/test/CodeGen/thinlto_embed_bitcode.ll
Commit 3045b3c3b5dbc4192b9a4057ae165f238b84ddf6 by craig.topper
[X86] Add test case for non-power of 2 scatter. NFC
The file was modifiedllvm/test/CodeGen/X86/masked_gather_scatter.ll
Commit 41f4cd60d54d94e8dac4bbd8d9961dc8ad4a64fc by craig.topper
[X86] Don't scalarize gather/scatters with non-power of 2 element counts. Widen instead.

We can pad the mask with zeros in order to widen. We already do
this for power 2 types that are smaller than a legal type.
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/CodeGen/X86/masked_gather_scatter.ll
Commit fc82006331228b6b16ea47cd8093ac145739044b by asbirlea
[MemorySSA] Set MustDominate to true for PhiTranslation.
The file was modifiedllvm/include/llvm/Analysis/MemorySSA.h
The file was modifiedllvm/test/Analysis/MemorySSA/phi-translation.ll
Commit 794467b916e87e8fb09380c67d0d433a29d93a2f by martin
[llvm-rc] Allow omitting components from VERSIONINFO versions

MS rc.exe doesn't require specifying all 4 components.

Differential Revision: https://reviews.llvm.org/D87570
The file was modifiedllvm/test/tools/llvm-rc/Inputs/tag-versioninfo.rc
The file was modifiedllvm/tools/llvm-rc/ResourceScriptParser.cpp
The file was modifiedllvm/test/tools/llvm-rc/tag-versioninfo.test
Commit 74d7356fc63bd1f42bbb20b793f21decf3c98a6e by martin
[llvm-rc] Update a comment. NFC.

Fix a typo and mention one missing step.
The file was modifiedllvm/tools/llvm-rc/ResourceFileWriter.cpp
Commit c913f6dce69513b430f705d5a1f4e745f5d0a27e by martin
[llvm-rc] Lowercase the option definitions. NFC.

This matches how such options are most commonly defined in other tools.

This was pointed out in an earlier review a few months ago, that
the llvm-rc td entries felt shouty.

The INCLUDE option is renamed to includepath, to avoid clashing with
the tablegen include directive.
The file was modifiedllvm/tools/llvm-rc/llvm-rc.cpp
The file was modifiedllvm/tools/llvm-rc/Opts.td
Commit 4171d5c30ad32282e6ca9027aeff01ef5ff2461b by Xing
[obj2yaml] Add support for dumping the .debug_addr(v5) section.

This patch adds support for dumping the .debug_addr(v5) section to
obj2yaml.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D87601
The file was modifiedllvm/tools/obj2yaml/obj2yaml.h
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h
The file was addedllvm/test/tools/obj2yaml/ELF/DWARF/debug-addr.yaml
The file was modifiedllvm/tools/obj2yaml/dwarf2yaml.cpp
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
Commit d3d76039002cd879f7aba37f88fc7312cfc95531 by asbirlea
[MemorySSA] Report unoptimized as None, not MayAlias.
The file was modifiedllvm/unittests/Analysis/MemorySSATest.cpp
The file was modifiedllvm/test/Analysis/MemorySSA/optimize-use.ll
The file was modifiedllvm/test/Analysis/MemorySSA/phi-translation.ll
The file was modifiedllvm/include/llvm/Analysis/MemorySSA.h
The file was modifiedllvm/test/Analysis/MemorySSA/pr43427.ll
Commit 94f7d3dba3c0a6ffd3e8a3f87ae849890578cd88 by mkazantsev
[Test] Some more potential range check elimination opportunities
The file was modifiedllvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
Commit af56be339f8c9660747794cc6755384154602535 by richard.barton
[flang] Fix docs build

Apply a local fix to an issue with recommonmark's AutoStructify extension
when used with certain versions of sphinx.

See https://github.com/readthedocs/recommonmark/issues/93

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D87714
The file was modifiedflang/docs/conf.py
Commit 6985135a43b62db2defc95367432069c9fddd094 by mkazantsev
[Test] Add positive range checks tests in addition to negative
The file was modifiedllvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
Commit b42fa0c040961b3704e826ddc969c0e98238c3ba by Vitaly Buka
Revert "[Asan] Fix false leak report"

Additional investigated confirmed that issue is not about
AddrIsInside, but missing registers.

This reverts commit 9d01612db48fa27d18c6320974b8d711572e5c67.
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
The file was removedcompiler-rt/test/asan/TestCases/redzone_noleak.cpp
Commit a8a85166d81f573af7ff325fdf93dd8bdfdeddbf by Vitaly Buka
Revert "[Asan] Accept __lsan_ignore_object for redzone pointer"

We still keep AddrIsInside.

This reverts commit 1d70984fa220f966ddcecd7906c5f10368fe1b93.
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/lsan_annotations.cpp
Commit 070b96962f517772fff4bf3c27cc825b46a136b5 by yvan.roux
[ARM][MachineOutliner] Add calls handling.

Handles calls inside outlined regions, by saving and restoring the link
register.

Differential Revision: https://reviews.llvm.org/D87136
The file was modifiedllvm/test/CodeGen/ARM/machine-outliner-default.mir
The file was modifiedllvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
Commit d427df6369f1d229a9f498b4dc621433ada380d2 by platonov.aleksandr
[clangd] Don't use zlib when it's unavailable.

Without this patch `clangd` crashes at try to load compressed string table when `zlib` is not available.
Example:
- Build `clangd` with MinGW (`zlib` found)
- Build index
- Build `clangd` with Visual Studio compiler (`zlib` not found)
- Try to load index

Reviewed By: sammccall, adamcz

Differential Revision: https://reviews.llvm.org/D87673
The file was modifiedclang-tools-extra/clangd/index/Serialization.cpp
Commit ef0b9f3307a1fa1c82b34098213ec854c1b5e608 by samuel.tebbs
[ARM][LowOverheadLoops] Combine a VCMP and VPST into a VPT

This patch combines a VCMP followed by a VPST into a VPT, which has the
same semantics as the combination of the former two.
The file was addedllvm/test/CodeGen/Thumb2/LowOverheadLoops/vcmp-vpst-combination.ll
The file was modifiedllvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
Commit cb1ef0eaff8726a8c1fe4b8440f6734cbbe91630 by sjoerd.meijer
Follow up rG635b87511ec3: forgot to add/commit the new test file. NFC.
The file was addedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-forced.ll
Commit 159abe09d25b19c24bf23ce50757987c0f25abe4 by AlokKumar.Sharma
[DebugInfo][flang] DISubrange support for fortran assumed size array

This is needed to support assumed size array of fortran which can have missing upperBound/count
, contrary to current DISubrange support.
Example:
subroutine sub (array1, array2)
  integer :: array1 (*)
  integer :: array2 (4:9, 10:*)

  array1(7:8) = 9
  array2(5, 10) = 10
end subroutine
Now the validation check is relaxed for fortran.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D87500
The file was modifiedllvm/include/llvm/BinaryFormat/Dwarf.h
The file was addedllvm/test/DebugInfo/X86/assumed_size_array.ll
The file was modifiedllvm/lib/IR/Verifier.cpp
Commit ef4851742de5e64a1ba9de51e375ac503d2d7ecb by grimar
[llvm-readobj][test] - Address a forgotten review comment for D86923.

Seems I've forgot to address this bit and this looks like a reason
of a failture on mac (http://45.33.8.238/mac/20491/step_11.txt).
The file was modifiedllvm/test/tools/llvm-readobj/ELF/dyn-symbols-size-from-hash-table.test
Commit 3a0a2a6347f5a79ebfba2cc2b763dd02001d9baa by kbobyrev
[clangd] Implement hot index reloading for clangd-index-server

This patch adds a mechanism to load new versions of index into
clangd-index-server using SwapIndex and FileStatus information about last
modification time without downtime.

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D87450
The file was modifiedclang-tools-extra/clangd/index/remote/server/Server.cpp
Commit 6040e2a6d97d9f9445715dfc468c3112f40e2588 by andrew.ng
[Support] Add GlobPattern::isTrivialMatchAll()

GlobPattern::isTrivialMatchAll() returns true for the GlobPattern "*"
which will match all inputs.

This can be used to avoid performing expensive preparation of the input
for match() when the result of the match will always be true.

Differential Revision: https://reviews.llvm.org/D87468
The file was modifiedllvm/unittests/Support/GlobPatternTest.cpp
The file was modifiedllvm/include/llvm/Support/GlobPattern.h
Commit 77152a6b7ac07ce65568d7c69305653e7cad4bb0 by andrew.ng
[LLD][ELF] Optimize linker script filename glob pattern matching NFC

Optimize the filename glob pattern matching in
LinkerScript::computeInputSections() and LinkerScript::shouldKeep().

Add InputFile::getNameForScript() which gets and if required caches the
Inputfile's name used for linker script matching. This avoids the
overhead of name creation that was in getFilename() in LinkerScript.cpp.

Add InputSectionDescription::matchesFile() and
SectionPattern::excludesFile() which perform the glob pattern matching
for an InputFile and make use of a cache of the previous result. As both
computeInputSections() and shouldKeep() process sections in order and
the sections of the same InputFile are contiguous, these single entry
caches can significantly speed up performance for more complex glob
patterns.

These changes have been seen to reduce link time with --gc-sections by
up to ~40% with linker scripts that contain KEEP filename glob patterns
such as "*crtbegin*.o".

Differential Revision: https://reviews.llvm.org/D87469
The file was modifiedlld/ELF/ARMErrataFix.h
The file was modifiedlld/ELF/LinkerScript.h
The file was modifiedlld/ELF/AArch64ErrataFix.h
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedlld/ELF/Relocations.h
The file was modifiedlld/include/lld/Common/Strings.h
The file was modifiedlld/ELF/InputFiles.h
The file was modifiedlld/ELF/LinkerScript.cpp
Commit a8d02015fcb783d5fdf1e09edd1b9e152c5d19b7 by grimar
[llvm-readobj][test] - Improve section-symbols.test

`section-symbols.test` tests how we print section symbols in
different situations.

We might have 2 different cases:
1) A named STT_SECTION symbol.
2) An unnamed STT_SECTION symbol.

Usually section symbols have no name and then `--symbols` uses their
section names when prints them. If symbol has a name, then it is used.

For `--relocations` we also want to have this logic probably,
but currently we always ignore symbol names and always use section names.
It is not consistent with GNU readelf and with our logic for `--symbols`.

This patch refines testing to document the existent behavior and improve
coverage.

Differential revision: https://reviews.llvm.org/D87612
The file was modifiedllvm/test/tools/llvm-readobj/ELF/section-symbols.test