FailedChanges

Summary

  1. InstCombiner.h - remove unnecessary KnownBits forward declaration. NFCI. (details)
  2. Revert "Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups" (details)
  3. [gn build] (manually) merge 2124ca1d5 (details)
  4. [gn build] Port 2124ca1d5cb (details)
  5. lld/mach-o: Make tool scripts from 2124ca1d5cb py2.7-compatible (details)
  6. Change name of Record::TheInit to CorrespondingDefInit to make code clearer. (details)
  7. [HIP] Fix -gsplit-dwarf option (details)
  8. Revert "[HIP] Fix -gsplit-dwarf option" (details)
  9. Fixes complexity of map insert_or_assign with a hint. (details)
  10. [ConstantFolding] add undef handling for fmin/fmax intrinsics (details)
  11. [InstCombine] regenerate test checks; NFC (details)
  12. [InstCombine] auto-generate test checks; NFC (details)
  13. [MemLoc] Support bcmp in MemoryLocation::getForArgument (details)
  14. [SCEVExpander] Support expanding nonintegral pointers with constant base. (details)
  15. [BasicAA] Regenerate test checks (details)
  16. [NFC][PhaseOrdering] Add test showing SROA not being performed after loop unrolling (details)
  17. [InstCombine] Regenerate test checks (NFC) (details)
  18. [scudo/standalone] Fix undefined behavior in checksum test (details)
  19. align __TEXT,__unwind_info to 8 byte boundary (details)
  20. [Local] Clean up enforceKnownAlignment() (NFC) (details)
  21. [Driver] Add disabled-by-default -Wuse-ld-path for the deprecation warning for -fuse-ld=/abs/path (details)
Commit 0c20d753d5fbacc162ce77271e616ad107956bf7 by llvm-dev
InstCombiner.h - remove unnecessary KnownBits forward declaration. NFCI.

We already include KnownBits.h
The file was modifiedllvm/include/llvm/Transforms/InstCombine/InstCombiner.h
Commit 3618ac203f17316401a48b5810b3b9c5ac417f2a by thakis
Revert "Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups"

This reverts commit 90fffdd0f705bfb480810cef087305567dc4f6cf.
The original change relanded.
The file was addedllvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
Commit ec9fb73277444ccc292d3662440ce44254b485c2 by thakis
[gn build] (manually) merge 2124ca1d5
The file was modifiedllvm/utils/gn/secondary/lld/MachO/BUILD.gn
Commit 70409b2897f2c894e389c5ab590931f983d3e6d7 by thakis
[gn build] Port 2124ca1d5cb
The file was modifiedllvm/utils/gn/secondary/lld/MachO/BUILD.gn
Commit e22a4fd59de668af1cb943e23a6f4bfc93090e0f by thakis
lld/mach-o: Make tool scripts from 2124ca1d5cb py2.7-compatible
The file was modifiedlld/test/MachO/tools/generate-cfi-funcs.py
The file was modifiedlld/test/MachO/tools/validate-unwind-info.py
Commit 04cebd900fde2c10d31a149895ed2495ff0994f7 by paul
Change name of Record::TheInit to CorrespondingDefInit to make code clearer.

Differential Revision: https://reviews.llvm.org/D87919
The file was modifiedllvm/lib/TableGen/Record.cpp
The file was modifiedllvm/include/llvm/TableGen/Record.h
Commit e50465ecefc964e5700df26fc7e02a673eed085a by Yaxun.Liu
[HIP] Fix -gsplit-dwarf option

when -gsplit option is used with clang driver, clang driver will create
a filename with .dwo option based on the input file name and pass
it to clang -cc1. This file is used for storing the debug info. Since
HIP generate separate object files for different GPU arch's,
this file should be different for different GPU arch. This patch
adds _ and GPU arch to the stem of the dwo file.

Differential Revision: https://reviews.llvm.org/D87791
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/lib/Driver/ToolChains/MinGW.cpp
The file was addedclang/test/Driver/hip-gsplit-dwarf-options.hip
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.h
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit 2819cea2ef8aab9d7ef8ba29feec9cb58cc942f6 by Yaxun.Liu
Revert "[HIP] Fix -gsplit-dwarf option"

This reverts commit e50465ecefc964e5700df26fc7e02a673eed085a
due to regression in lldb tests.
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.h
The file was removedclang/test/Driver/hip-gsplit-dwarf-options.hip
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/lib/Driver/ToolChains/MinGW.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit d4dd961300588ce7e50625a1947befb45e3a0c42 by koraq
Fixes complexity of map insert_or_assign with a hint.

Mitsuru Kariya reported the map operations insert_or_assign with a hint
violates the complexity requirement. The function no longer uses a lower_bound,
which caused the wrong complexity.

Fixes PR38722: [C++17] std::map::insert_or_assign w/ hint violate complexity requirements

Differential Revision: https://reviews.llvm.org/D62779
The file was modifiedlibcxx/include/__tree
The file was modifiedlibcxx/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp
The file was modifiedlibcxx/include/map
Commit f74a334fe35bcea08a48f76462782f0eafc6d564 by spatel
[ConstantFolding] add undef handling for fmin/fmax intrinsics

The output here may not be optimal (yet), but it should be
consistent for commuted operands (it was not before) and
correct. We can do better by checking FMF and NaN if needed.

Code in InstSimplify generally assumes that we have already
folded code like this, so it was not handling 2 constant
inputs by commuting consistently.
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/fp-undef.ll
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp
Commit 2c3d199fbfaa51f12a82d30c6b07f92acf470e15 by spatel
[InstCombine] regenerate test checks; NFC
The file was modifiedllvm/test/Transforms/InstCombine/zext-or-icmp.ll
Commit 534e9132afceed8af8b4c309dab1547cc750e9fe by spatel
[InstCombine] auto-generate test checks; NFC
The file was modifiedllvm/test/Transforms/InstCombine/phi.ll
Commit d716f1608cf3bcb4bece20b81ab9204a64a1d67f by Dávid Bolvanský
[MemLoc] Support bcmp in MemoryLocation::getForArgument

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D87964
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll
The file was modifiedllvm/test/Analysis/BasicAA/libfuncs.ll
The file was modifiedllvm/lib/Analysis/MemoryLocation.cpp
Commit 1d8f2e52925b3a3ab52726c745169f273239329d by flo
[SCEVExpander] Support expanding nonintegral pointers with constant base.

Currently SCEVExpander creates inttoptr for non-integral pointers if the
base is a null constant for example. This results in invalid IR.

This patch changes InsertNoopCastOfTo to emit a GEP & bitcast to convert
to a non-integral pointer. First, a GEP of i8* null is generated and the
integral value is used as index. The GEP is then bitcasted to the target
type.

This was exposed by D71539.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D87827
The file was modifiedllvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
The file was modifiedllvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
Commit fa33235df5a276e11f926158e571635c4c9cfba8 by Dávid Bolvanský
[BasicAA] Regenerate test checks
The file was modifiedllvm/test/Analysis/BasicAA/modref.ll
Commit bb6f4d32aac3eecb51909f4facc625219307ee68 by lebedev.ri
[NFC][PhaseOrdering] Add test showing SROA not being performed after loop unrolling
The file was addedllvm/test/Transforms/PhaseOrdering/X86/SROA-after-loop-unrolling.ll
Commit a2f9098f7ab67f44246b412771b0003901138b5d by nikita.ppv
[InstCombine] Regenerate test checks (NFC)
The file was modifiedllvm/test/Transforms/InstCombine/gep-custom-dl.ll
The file was modifiedllvm/test/Transforms/InstCombine/loadstore-alignment.ll
The file was modifiedllvm/test/Transforms/InstCombine/getelementptr.ll
The file was modifiedllvm/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll
The file was modifiedllvm/test/Transforms/InstCombine/assume-loop-align.ll
The file was modifiedllvm/test/Transforms/InstCombine/constant-fold-address-space-pointer.ll
The file was modifiedllvm/test/Transforms/InstCombine/constant-fold-gep.ll
The file was modifiedllvm/test/Transforms/InstCombine/align-2d-gep.ll
The file was modifiedllvm/test/Transforms/InstCombine/alloca-cast-debuginfo.ll
The file was modifiedllvm/test/Transforms/InstCombine/alloca.ll
The file was modifiedllvm/test/Transforms/InstCombine/memcpy-from-global.ll
Commit f5fa5b9fe3b02f26b38612f96cba19aceccbc2a3 by mcgrathr
[scudo/standalone] Fix undefined behavior in checksum test

1U has type unsigned int, and << of 32 or more is undefined behavior.
Use the proper type in the lhs of the shift.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D87973
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/checksum_test.cpp
Commit cba45514fb420ed45c721146d16ec9d9bd7f7f98 by gkm
align __TEXT,__unwind_info to 8 byte boundary
The file was modifiedlld/MachO/UnwindInfoSection.cpp
Commit f4e554180962aa6bc93678898b6933ea712bde50 by nikita.ppv
[Local] Clean up enforceKnownAlignment() (NFC)

I want to export this function, and the current API was a bit
weird: It took an additional Alignment argument that didn't really
have anything to do with what the function does. Drop it, and
perform a max at the callsite.

Also rename it to tryEnforceAlignment().
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
Commit 9087209314caafed4b232d4a66287f2d16054ad3 by i
[Driver] Add disabled-by-default -Wuse-ld-path for the deprecation warning for -fuse-ld=/abs/path

The warning is currently not under a -W option, so it cannot be suppressed.
This is annoying for the widespread build system Bazel when specifying the path to gold
https://github.com/bazelbuild/bazel/commit/cdd0c3cdba270115940e8ca5ec8104cbcd694671

I have notified them about using --ld-path= forwards
https://github.com/bazelbuild/bazel/pull/8580#issuecomment-694321543
but we have to give some transitional period.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D87837
The file was modifiedclang/lib/Driver/ToolChain.cpp
The file was modifiedclang/test/Driver/fuse-ld.c
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was modifiedclang/test/Misc/warning-flags.c
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td