[all-commits] [llvm/llvm-project] ddb04d: [DAGCombine] Check zext legality in zext-extract-e...

Diana via All-commits all-commits at lists.llvm.org
Mon Aug 15 23:31:17 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ddb04d7968715165363bfb3280c158865bee113d
      https://github.com/llvm/llvm-project/commit/ddb04d7968715165363bfb3280c158865bee113d
  Author: Peter Waller <peter.waller at arm.com>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAGCombine] Check zext legality in zext-extract-extend combine

Discussed in D131503.

Fix to D130782.

(cherry picked from commit 898699831b5490d88b993593e5cb415fb2d1983a)


  Commit: c4398881f8ef60074415ecaf019cfe98a88275da
      https://github.com/llvm/llvm-project/commit/c4398881f8ef60074415ecaf019cfe98a88275da
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/MC/MCDwarf.cpp
    M llvm/unittests/MC/DwarfLineTableHeaders.cpp

  Log Message:
  -----------
  [MCDwarf] Use emplace to avoid move assignment. NFC

(cherry picked from commit b0c4cd35df89479ec152c1f79e18d0264dd276cc)


  Commit: 095ea503ddc00db82a67f940f5ad7ecbf349a4fc
      https://github.com/llvm/llvm-project/commit/095ea503ddc00db82a67f940f5ad7ecbf349a4fc
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/test/MC/ELF/debug-prefix-map.s

  Log Message:
  -----------
  [MCDwarf][test] Improve debug-prefix-map.s

(cherry picked from commit d561907f27d721558e4372990ca52a8284b7aafc)


  Commit: e087912321e0f130b03040a1406580eb7c57c3d0
      https://github.com/llvm/llvm-project/commit/e087912321e0f130b03040a1406580eb7c57c3d0
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M bolt/lib/Core/DebugData.cpp

  Log Message:
  -----------
  [BOLT] Use Optional::emplace to avoid move assignment. NFC

(cherry picked from commit 53113515cdaa19a86e4b807808b7b99dc1c91685)


  Commit: e2da724461db2bbfdea84a87c508f96fe23b8805
      https://github.com/llvm/llvm-project/commit/e2da724461db2bbfdea84a87c508f96fe23b8805
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCDwarf.h
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCDwarf.cpp
    M llvm/test/MC/ELF/debug-prefix-map.s

  Log Message:
  -----------
  [MCDwarf] Respect -fdebug-prefix-map= for generated assembly debug info (DWARF v5)

For generated assembly debug info, MCDwarfLineTableHeader::CompilationDir is an
unmapped path set in MCContext::setGenDwarfRootFile. Remap it.

A relative destination path of -fdebug-prefix-map= exposes a llvm-dwarfdump bug
which joins relative DW_AT_comp_dir and directories[0].

Fix https://github.com/llvm/llvm-project/issues/56609

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D131749

(cherry picked from commit f62e60fb238146113f84e0efb1a2ebc52f05cc0a)


  Commit: 655a1cbd6447c290688ff2feee8e941682c266e7
      https://github.com/llvm/llvm-project/commit/655a1cbd6447c290688ff2feee8e941682c266e7
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    M llvm/test/DebugInfo/X86/symbolize_function_start_v5.s
    M llvm/test/MC/ELF/debug-prefix-map.s

  Log Message:
  -----------
  [DebugInfo] Don't join DW_AT_comp_dir and directories[0] for DWARF v5 line tables

DWARF v5 6.2.4 The Line Number Program Header says:

> The first entry is the current directory of the compilation. Each additional
> path entry is either a full path name or is relative to the current directory of
> the compilation.

When forming a path, relative DW_AT_comp_dir and directories[0] are not supposed
to be joined together. Fix getFileNameByIndex to special case DWARF v5 DirIdx == 0.

Reviewed By: #debug-info, dblaikie

Differential Revision: https://reviews.llvm.org/D131804

(cherry picked from commit 3329cec2f79185bafd678f310fafadba2a8c76d2)


  Commit: e4aa1049da45836c03139069edb14f1ea2df64dd
      https://github.com/llvm/llvm-project/commit/e4aa1049da45836c03139069edb14f1ea2df64dd
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/include/llvm/MC/MCDwarf.h
    M llvm/lib/MC/MCContext.cpp
    M llvm/test/MC/ELF/debug-hash-file.s

  Log Message:
  -----------
  [DebugInfo] -fdebug-prefix-map: handle '#line "file"' for asm source

`getContext().setMCLineTableRootFile` (from D62074) sets `RootFile.Name` to
`FirstCppHashFilename`. `RootFile.Name` is not processed by -fdebug-prefix-map
and will go to DW_TAG_compile_unit's DT_AT_name and DW_TAG_label's
DW_AT_decl_file. Remap `RootFile.Name`.

Fix another issue reported by https://github.com/llvm/llvm-project/issues/56609

Reviewed By: #debug-info, dblaikie, raj.khem

Differential Revision: https://reviews.llvm.org/D131848

(cherry picked from commit d797c2ffdb591d10de2964907962aaacb2e360ca)


  Commit: f1f55a9f1e2f81060e9144b4df5050adf2db2866
      https://github.com/llvm/llvm-project/commit/f1f55a9f1e2f81060e9144b4df5050adf2db2866
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp

  Log Message:
  -----------
  [RISCV] isImpliedByDomCondition returns an Optional<bool> not a bool.

We were incorrectly checking that it returned an implicaton result,
not that the implication result itself was true.


  Commit: 8abe263f1ed2c511b74a677859863dac5a1babaf
      https://github.com/llvm/llvm-project/commit/8abe263f1ed2c511b74a677859863dac5a1babaf
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M flang/cmake/modules/AddFlang.cmake
    M flang/lib/Decimal/CMakeLists.txt
    M flang/runtime/CMakeLists.txt
    M flang/runtime/FortranMain/CMakeLists.txt

  Log Message:
  -----------
  [flang] Install runtime libs with the toolchain

Make sure that FortranDecimal, FortranRuntime and Fortran_main are
installed/packaged even when LLVM_INSTALL_TOOLCHAIN_ONLY is enabled.
They are used by flang to link executables, so they should be provided
even with minimal installs.

Differential Revision: https://reviews.llvm.org/D131670

(cherry picked from commit 467abac2046d037f8d4cf428e76b77e5b06c187f)


Compare: https://github.com/llvm/llvm-project/compare/7af201cba581...8abe263f1ed2


More information about the All-commits mailing list