SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [Test] Add examples of problematic assembler auto-padding (details)
  2. [TableGen] Fixes -Wrange-loop-analysis warnings (details)
  3. [Tools] Fixes -Wrange-loop-analysis warnings (details)
  4. [Analyzer] Fixes -Wrange-loop-analysis warnings (details)
  5. [Transforms] Fixes -Wrange-loop-analysis warnings (details)
  6. [PowerPC] Fixes -Wrange-loop-analysis warnings (details)
  7. [NVPTX] Fixes -Wrange-loop-analysis warnings (details)
  8. [Hexagon] Fixes -Wrange-loop-analysis warnings (details)
  9. [AMDGPU] Fixes -Wrange-loop-analysis warnings (details)
  10. [X86] Fix typo of intrinsic name in test cases. NFC (details)
  11. [X86] Autogenerate complete checks. NFC (details)
  12. Revert "[ARM][TypePromotion] Enable by default" (details)
  13. [SelectionDAG] Copy FP flags when visiting a binary instruction. (details)
  14. Revert "[Concepts] Constrained partial specializations and function (details)
  15. Revert "[DebugInfo] Support to emit debugInfo for extern variables" (details)
  16. build: improve python checks for Windows (details)
  17. [DAGCombiner] Check term use before applying aggressive FSUB (details)
  18. [lldb/ScriptInterpreter] Unify error message for command script import (details)
  19. [ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). (details)
  20. [SCEV] add testcase for get accurate range for addrecexpr with nuw flag (details)
  21. [NFC] Remove unnecessary blank and rename align-branch-64-5b.s to (details)
  22. reland "[DebugInfo] Support to emit debugInfo for extern variables" (details)
  23. [AST] Add missing MultiplexConsumer::CompleteExternalDeclaration (details)
  24. [PowerPC] Exploit `vrl(b|h|w|d)` to perform vector rotation (details)
Commit be051f4312aa0952b7cf937f44b9b46e4ffee627 by listmail
[Test] Add examples of problematic assembler auto-padding
This is in the context of the automatic padding work for the jcc erratum
mitigation.  These are example cases we need to *not* pad for
correctness.  Exact mechanism to suppress is still TBD, but saving the
tests which have come up.
The file was addedllvm/test/MC/X86/align-branch-64-negative.s
Commit e8d448ec255c7034cd00d1e0d1469eb6b31682ae by koraq
[TableGen] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71807
The file was modifiedllvm/utils/TableGen/OptParserEmitter.cpp
The file was modifiedllvm/utils/TableGen/CodeGenDAGPatterns.cpp
The file was modifiedllvm/utils/TableGen/AsmMatcherEmitter.cpp
The file was modifiedllvm/utils/TableGen/CodeEmitterGen.cpp
The file was modifiedllvm/utils/TableGen/GlobalISelEmitter.cpp
Commit 536c9a604e82f0c0284595344b8ab9dd601071cf by koraq
[Tools] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71808
The file was modifiedllvm/tools/llvm-exegesis/lib/Clustering.cpp
The file was modifiedllvm/tools/llvm-exegesis/llvm-exegesis.cpp
The file was modifiedllvm/tools/llvm-readobj/ObjDumper.cpp
The file was modifiedllvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/tools/llvm-mca/Views/SummaryView.cpp
The file was modifiedllvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
The file was modifiedllvm/tools/llvm-mca/Views/DispatchStatistics.cpp
The file was modifiedllvm/tools/llvm-mca/Views/RetireControlUnitStatistics.cpp
The file was modifiedllvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
The file was modifiedllvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
Commit b6d9e976629ac655e0ed2655289e90357107793f by koraq
[Analyzer] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71809
The file was modifiedclang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/IteratorModeling.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
Commit 098d3347e74ac89ea87744bf40ca98ade5e8468e by koraq
[Transforms] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71810
The file was modifiedllvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
The file was modifiedllvm/lib/Transforms/Scalar/SCCP.cpp
The file was modifiedllvm/lib/Transforms/Utils/InlineFunction.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
Commit 1b344e7967a7bb6ebcd71977eb5f8c47b8a92448 by koraq
[PowerPC] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71811
The file was modifiedllvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
Commit 31262d6722c7ae6a9966a76064af43e5b3a8df71 by koraq
[NVPTX] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Also removed the top-level const as requested by Aaron Ballman in
similar patches.
Differential Revision: https://reviews.llvm.org/D71812
The file was modifiedllvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
Commit 9c11026c1b0180f66e4b2a70611ec4f2d21ed3f7 by koraq
[Hexagon] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71814
The file was modifiedllvm/lib/Target/Hexagon/BitTracker.cpp
The file was modifiedllvm/lib/Target/Hexagon/RDFLiveness.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
Commit 2d903cc9656d8b55d267ad21a2f21f63b9fcc3ab by koraq
[AMDGPU] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to
-Wall.
Differential Revision: https://reviews.llvm.org/D71815
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUUnifyMetadata.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
Commit fa303ea5d367177b459524ba456a96ac9f144a07 by craig.topper
[X86] Fix typo of intrinsic name in test cases. NFC
These said test_f32_olt_s for the type of an overloaded intrinsic. But
the parser doesn't use that part of the name and just uses the types of
the arguments.
The file was modifiedllvm/test/CodeGen/X86/fp-strict-scalar-cmp.ll
Commit a4aa40cebc9b4a1d8a7dafddd65d99c4fd53ebec by craig.topper
[X86] Autogenerate complete checks. NFC
The file was modifiedllvm/test/CodeGen/X86/fp-strict-scalar-cmp.ll
Commit b2c1ba5b1f8049cdacec1a111c2ef267cd5acff5 by rnk
Revert "[ARM][TypePromotion] Enable by default"
This reverts commit ee7579409b7d940c4e1314d126e900db30c4edff.
It causes crashes during ThinLTO. I suspect the issue is related to
races on the global TypeSize variable, which is 80 at the time of the
crash.
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/clear-structures.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/calls.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/icmps.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/signed.ll
The file was modifiedllvm/lib/CodeGen/TypePromotion.cpp
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/casts.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/phis-ret.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/pointers.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/signed-icmps.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/wrapping.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/switch.ll
Commit fb0ccff6e56bde6c42b2ff941861564e24a7a805 by v.churavy
[SelectionDAG] Copy FP flags when visiting a binary instruction.
Summary: We noticed in Julia that the sequence below no longer turned
into a sequence of FMA instructions in LLVM 7+, but it did in LLVM 6.
```
   %29 = fmul contract <4 x double> %wide.load, %wide.load16
   %30 = fmul contract <4 x double> %wide.load13, %wide.load17
   %31 = fmul contract <4 x double> %wide.load14, %wide.load18
   %32 = fmul contract <4 x double> %wide.load15, %wide.load19
   %33 = fadd fast <4 x double> %vec.phi, %29
   %34 = fadd fast <4 x double> %vec.phi10, %30
   %35 = fadd fast <4 x double> %vec.phi11, %31
   %36 = fadd fast <4 x double> %vec.phi12, %32
```
Unlike Clang, Julia doesn't set the `unsafe-fp-math=true` function
attribute, but rather emits more local instruction flags.
This partially undoes https://reviews.llvm.org/D46854 and if required I
can try to minimize the test further.
Reviewers: spatel, mcberg2017
Reviewed By: spatel
Subscribers: chriselrod, merge_guards_bot, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71495
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/test/CodeGen/X86/fmf-reduction.ll
Commit 79cc9e9b304a90598e8def4c8b5354d1f99186eb by rnk
Revert "[Concepts] Constrained partial specializations and function
overloads."
This reverts commit d3f5769d5e93b30d4a8b4696381d5e4a304992fa.
Causes crashes on Chromium. Have reproducer, will reduce and send along.
The file was modifiedclang/test/CXX/expr/expr.prim/expr.prim.id/p3.cpp
The file was modifiedclang/include/clang/AST/DeclTemplate.h
The file was removedclang/test/CXX/temp/temp.constr/temp.constr.order/var-template-partial-specializations.cpp
The file was modifiedclang/lib/Serialization/ASTReaderDecl.cpp
The file was modifiedclang/lib/Frontend/FrontendActions.cpp
The file was modifiedclang/lib/Sema/SemaTemplateInstantiate.cpp
The file was modifiedclang/lib/AST/ASTImporter.cpp
The file was removedclang/test/CXX/temp/temp.constr/temp.constr.normal/p1.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/Sema/SemaTemplateInstantiateDecl.cpp
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was removedclang/test/CXX/temp/temp.constr/temp.constr.order/function-templates.cpp
The file was modifiedclang/lib/AST/DeclTemplate.cpp
The file was modifiedclang/lib/Serialization/ASTWriterDecl.cpp
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaConcept.cpp
The file was modifiedclang/lib/Sema/SemaTemplateDeduction.cpp
The file was removedclang/test/CXX/temp/temp.constr/temp.constr.order/class-template-partial-specializations.cpp
Commit 891e25b02d760d0de18c7d46947913b3166047e7 by rnk
Revert "[DebugInfo] Support to emit debugInfo for extern variables"
This reverts commit d77ae1552fc21a9f3877f3ed7e13d631f517c825.
The tests committed along with this change do not pass, and should be
changed to use %clang_cc1.
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedllvm/lib/IR/DebugInfo.cpp
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/include/clang/AST/ASTConsumer.h
The file was modifiedclang/lib/CodeGen/ModuleBuilder.cpp
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedllvm/include/llvm/IR/DIBuilder.h
The file was removedclang/test/CodeGen/debug-info-extern-multi.c
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
The file was modifiedclang/lib/CodeGen/CGDebugInfo.h
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.h
The file was modifiedclang/include/clang/Basic/TargetInfo.h
The file was modifiedclang/lib/Basic/Targets/BPF.h
The file was removedclang/test/CodeGen/debug-info-extern-basic.c
The file was modifiedllvm/unittests/Transforms/Utils/CloningTest.cpp
The file was removedclang/test/CodeGen/debug-info-extern-duplicate.c
The file was removedclang/test/CodeGen/debug-info-extern-unused.c
The file was modifiedllvm/lib/IR/DIBuilder.cpp
Commit 2046d72e91670114625c87e122db6e013ba089d5 by Saleem Abdulrasool
build: improve python checks for Windows
Require a newer CMake on Windows to use the Python3 support that is
packaged in CMake. This version is able to check both 32-bit and 64-bit
versions and will setup everything properly without the user needing to
specify PYTHON_HOME. This enables building lldb's python bindings on
Windows under Azure's CI again.
The file was modifiedlldb/cmake/modules/LLDBConfig.cmake
The file was modifiedlldb/CMakeLists.txt
Commit 2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9 by carl.ritson
[DAGCombiner] Check term use before applying aggressive FSUB
optimisations
Summary: Without this check unnecessary FMA instructions are generated
when the FSUB terms are reused. This also has the side-effect that the
same value is computed to different levels of precision, which can
create undesirable effects if the results are used together in
subsequent computation.
Reviewers: arsenm, nhaehnle, foad, tpr, dstuttard, spatel
Reviewed By: arsenm
Subscribers: jvesely, wdng, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71656
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/fadd-fma-fmul-combine.ll
Commit bd5c8d167b7cce3290d755e29623d047c2ad8e3e by Jonas Devlieghere
[lldb/ScriptInterpreter] Unify error message for command script import
Rather than checking for Python explicitly, let the script interpreter
handle things and print an error if the functionality is not supported.
The file was modifiedlldb/source/Commands/CommandObjectCommands.cpp
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
The file was modifiedlldb/source/Interpreter/ScriptInterpreter.cpp
The file was addedlldb/test/Shell/ScriptInterpreter/None/import_module.test
Commit 2539cd22e96ef53da204c9bb28b8a38a582c1309 by maskray
[ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant().
NFC
scanReloc() returns when it sees an R_HINT.
The file was modifiedlld/ELF/Relocations.cpp
Commit 7259f04dde82502f133117c5a80eebd92a5fe092 by czhengsz
[SCEV] add testcase for get accurate range for addrecexpr with nuw flag
The file was modifiedllvm/test/Analysis/ScalarEvolution/range_nw_flag.ll
Commit fb53396c49493e3dfd51bb75ca822bd9896210f6 by shengchen.kan
[NFC] Remove unnecessary blank and rename align-branch-64-5b.s to
align-branch-64-6a.s
The file was addedllvm/test/MC/X86/align-branch-64-6a.s
The file was removedllvm/test/MC/X86/align-branch-64-5b.s
The file was modifiedllvm/include/llvm/MC/MCFragment.h
Commit e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb by yhs
reland "[DebugInfo] Support to emit debugInfo for extern variables"
Commit d77ae1552fc21a9f3877f3ed7e13d631f517c825
("[DebugInfo] Support to emit debugInfo for extern variables") added
deebugInfo for extern variables for BPF target. The commit is reverted
by 891e25b02d760d0de18c7d46947913b3166047e7 as the committed tests using
%clang instead of %clang_cc1 causing test failed in certain scenarios as
reported by Reid Kleckner.
This patch fixed the tests by using %clang_cc1.
Differential Revision: https://reviews.llvm.org/D71818
The file was addedclang/test/CodeGen/debug-info-extern-multi.c
The file was modifiedclang/include/clang/Basic/TargetInfo.h
The file was modifiedclang/lib/CodeGen/CGDebugInfo.h
The file was addedclang/test/CodeGen/debug-info-extern-duplicate.c
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was addedclang/test/CodeGen/debug-info-extern-basic.c
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedllvm/include/llvm/IR/DIBuilder.h
The file was addedclang/test/CodeGen/debug-info-extern-unused.c
The file was modifiedclang/lib/Basic/Targets/BPF.h
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp
The file was modifiedllvm/unittests/Transforms/Utils/CloningTest.cpp
The file was modifiedclang/lib/CodeGen/ModuleBuilder.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedllvm/lib/IR/DIBuilder.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.h
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
The file was modifiedllvm/lib/IR/DebugInfo.cpp
The file was modifiedclang/include/clang/AST/ASTConsumer.h
Commit 5128026467cbc17bfc796d94bc8e40e52a9b0752 by rnk
[AST] Add missing MultiplexConsumer::CompleteExternalDeclaration
The file was modifiedclang/lib/Frontend/MultiplexConsumer.cpp
The file was modifiedclang/include/clang/Frontend/MultiplexConsumer.h
Commit 9681dc9627b1ea50fd90cdea84290ddc021d3fca by lkail
[PowerPC] Exploit `vrl(b|h|w|d)` to perform vector rotation
Summary: Currently, we set legalization action of `ISD::ROTL` vectors as
`Expand` in `PPCISelLowering`. However, we can exploit `vrl(b|h|w|d)` to
lower `ISD::ROTL` directly.
Differential Revision: https://reviews.llvm.org/D71324
The file was modifiedllvm/test/CodeGen/PowerPC/funnel-shift-rot.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrAltivec.td
The file was addedllvm/test/CodeGen/PowerPC/vector-rotates.ll