FailedChanges

Summary

  1. [GlobalISel] Micro-optimize the conditional branch optimization. (details)
  2. [Debug-Info][NFC] add a wrapper for Die.addValue (details)
  3. [LazyValueInfo] Insert an Overdefined placeholder to prevent infinite recursion (details)
  4. [libcxx] Fix a case of -Wundef warnings. NFC. (details)
  5. [lit][test] Attempt fix when paths include symlink (details)
  6. [LoopVectorize][SVE] Remove assert for scalable vector in InnerLoopVectorizer::fixReduction (details)
  7. [flang] Add tests for MIN for character arrays. NFC (details)
  8. [flang] Remove redundant reallocation (details)
  9. [AMDGPU] Serialize MFInfo::ScavengeFI (details)
  10. [gn build] Port 98e5ede60499 (details)
Commit 1ccebb18ef9f4110e555209261d73dbec393e364 by Amara Emerson
[GlobalISel] Micro-optimize the conditional branch optimization.

Convert a check into an assert and pass an MI instead of recomputing in the
apply function.
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
Commit 9deb7eeaf76c3285b72ce75d30fcade63b96e2dc by czhengsz
[Debug-Info][NFC] add a wrapper for Die.addValue

Add a new wrapper function addAttribute() for Die.addValue() function,
so we can do some attributes control in one single interface.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D101125
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Commit 911a541620bcc78e637589b8623d94b8f3cdafba by guopeilin1
[LazyValueInfo] Insert an Overdefined placeholder to prevent infinite recursion

getValueFromCondition() uses a Visited set to record the intermediate value.
However, it uses a postorder way to compute the value first and update the
Visited set later. Thus it will be trapped into an infinite recursion if there
exists IRs that use no dominated by its def as in this example:

  %tmp3 = or i1 undef, %tmp4
  %tmp4 = or i1 undef, %tmp3

To prevent this, we can insert an Overdefined placeholder into the set
before computing the actual value.

Reviewed by: nikic

Differential Revision: https://reviews.llvm.org/D101273
The file was modifiedllvm/lib/Analysis/LazyValueInfo.cpp
The file was addedllvm/test/Transforms/JumpThreading/insert-placeholder-to-prevent-infinite-recursion.ll
Commit dafbfb1d1d8e01beac3704aea4e8df45260a6310 by martin
[libcxx] Fix a case of -Wundef warnings. NFC.

Differential Revision: https://reviews.llvm.org/D101978
The file was modifiedlibcxx/src/locale.cpp
Commit d2b2ad32b76989b68e7b525e7484e25b0f0cc4e6 by james.henderson
[lit][test] Attempt fix when paths include symlink

Example of failure:
https://lab.llvm.org/staging/#/builders/126/builds/345/steps/5/logs/FAIL__lit___use-tool-search-env_py
The file was modifiedllvm/utils/lit/tests/Inputs/use-tool-search-env/lit.cfg
Commit cf06c8eee3a5ac6172e77abe5d7547554e6a6620 by caroline.concatto
[LoopVectorize][SVE] Remove assert for scalable vector in InnerLoopVectorizer::fixReduction

The function fixReduction used to assert/crash for scalable vector when
a vector reduce could be done with a smaller vector.
This patch removes this assertion as it is safe to use scalable vector for
vector reduce and truncate.

Differential Revision: https://reviews.llvm.org/D101260
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was addedllvm/test/Transforms/LoopVectorize/scalable-reduction-inloop.ll
Commit 778487a221496e92795afab147c3a030c74ad356 by diana.picus
[flang] Add tests for MIN for character arrays. NFC

We used to test only scalar character types. This commit adds tests for
arrays with a few simple shapes.

Differential Revision: https://reviews.llvm.org/D101983
The file was modifiedflang/unittests/RuntimeGTest/CharacterTest.cpp
Commit 2ea36e94927ccbc1f8e915a4e5c932531e69f02d by diana.picus
[flang] Remove redundant reallocation

The MaxMinHelper used to implement MIN and MAX for character types would
reallocate the accumulator whenever the number of characters in it was
different from that in the other input. This is unnecessary if the
accumulator is already larger than the other input. This patch fixes the
issue and adds a unit test to make sure we don't reallocate if we don't
need to.

Differential Revision: https://reviews.llvm.org/D101984
The file was modifiedflang/unittests/RuntimeGTest/CharacterTest.cpp
The file was modifiedflang/runtime/character.cpp
Commit 98e5ede60499f255c2cd48b85dcda14af5b99c7d by sebastian.neubauer
[AMDGPU] Serialize MFInfo::ScavengeFI

Serialize ScavengeFI from SIMachineFunctionInfo into yaml.

ScavengeFI is not used outside of the PrologEpilogInserter,
so this shouldn't change anything.

Differential Revision: https://reviews.llvm.org/D101367
The file was addedllvm/test/CodeGen/MIR/AMDGPU/machine-function-info-after-pei.ll
The file was modifiedllvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
The file was addedllvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index2.mir
The file was addedllvm/lib/CodeGen/MIRYamlMapping.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
The file was addedllvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index-invalid-stack.mir
The file was addedllvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index.mir
The file was modifiedllvm/test/CodeGen/MIR/AMDGPU/machine-function-info-no-ir.mir
The file was addedllvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index-invalid-fixed-stack.mir
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
The file was addedllvm/test/CodeGen/MIR/AMDGPU/invalid-frame-index-no-stack.mir
The file was modifiedllvm/lib/CodeGen/CMakeLists.txt
The file was modifiedllvm/include/llvm/CodeGen/MIRYamlMapping.h
Commit 8894a4b5d70a2fee8c35e2e66597fec24bc15770 by llvmgnsyncbot
[gn build] Port 98e5ede60499
The file was modifiedllvm/utils/gn/secondary/llvm/lib/CodeGen/BUILD.gn