SuccessChanges

Summary

  1. [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument (details)
  2. Revert "[WebAssembly] MC layer writes table symbols to object files" (details)
  3. Revert "[WebAssembly] Add support for table linking to wasm-ld" (details)
  4. hwasan: Update register-dump-read.c test to reserve x23 instead of x20. (details)
  5. [NFC] Disallow unused prefixes under MC/RISCV (details)
Commit a1500105ee6074f992f376c916dcfa3a54acb717 by Dávid Bolvanský
[SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument

Example:

```
__attribute__((nonnull,noinline)) char * pinc(char *p)  {
  return ++p;
}

char * foo(bool b, char *a) {
       return pinc(b ? 0 : a);

}
```

optimize to

```
char * foo(bool b, char *a) {
       return pinc(a);

}
```

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D94180
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
The file was modifiedllvm/test/Transforms/SimplifyCFG/UnreachableEliminate.ll
Commit e65b9b04cdeff17fbcdae8d2bb268da832e4a267 by dschuff
Revert "[WebAssembly] MC layer writes table symbols to object files"

This reverts commit e9f1ed2306b1b3aedcb1acef2b50e252a77a04b9.

Reverting because it depends on 38dfce706f
The file was modifiedllvm/test/MC/WebAssembly/weak-alias.s
The file was modifiedllvm/test/MC/WebAssembly/global-ctor-dtor.ll
The file was modifiedllvm/test/MC/WebAssembly/type-index.s
The file was modifiedllvm/lib/MC/WasmObjectWriter.cpp
The file was modifiedllvm/test/MC/WebAssembly/debug-info64.ll
The file was modifiedllvm/test/MC/WebAssembly/debug-info.ll
The file was modifiedllvm/test/MC/WebAssembly/function-alias.ll
The file was modifiedllvm/test/MC/WebAssembly/reloc-pic.s
Commit 187d771d27ed9059675b53e92e8fb8aeee9c43d8 by dschuff
Revert "[WebAssembly] Add support for table linking to wasm-ld"

This reverts commit 38dfce706f796dc109ea495dd69a8cb4c8fa819d.
CI discovered a bug where the table is exported twice: see
D91870
The file was modifiedlld/wasm/SymbolTable.cpp
The file was modifiedlld/wasm/InputFiles.cpp
The file was modifiedlld/test/wasm/alias.s
The file was modifiedlld/test/wasm/stack-pointer.ll
The file was modifiedlld/test/wasm/locals-duplicate.test
The file was modifiedlld/wasm/SyntheticSections.cpp
The file was modifiedlld/test/wasm/local-symbols.ll
The file was modifiedlld/test/wasm/shared.ll
The file was modifiedlld/wasm/Symbols.h
The file was modifiedlld/wasm/MarkLive.cpp
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/test/wasm/weak-alias.ll
The file was modifiedlld/wasm/Symbols.cpp
The file was modifiedlld/wasm/InputFiles.h
The file was modifiedlld/test/wasm/pie.ll
The file was modifiedlld/test/wasm/signature-mismatch.ll
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/test/wasm/section-symbol-relocs.yaml
The file was modifiedlld/test/wasm/init-fini.ll
The file was modifiedlld/wasm/SymbolTable.h
The file was modifiedlld/wasm/SyntheticSections.h
Commit d302398ff05f6d2bfbcb5c4fdafccf8a0e3b9875 by peter
hwasan: Update register-dump-read.c test to reserve x23 instead of x20.

D90422 changed this test to write a fixed value into register x23
instead of x20, but it did not update the list of reserved registers.
This meant that x23 may have been live across the register write,
although this happens to not be the case with the current compiler.
Fix the problem by updating the reserved register list.
The file was modifiedcompiler-rt/test/hwasan/TestCases/register-dump-read.c
Commit aa3d4d9939595295d19969c62077cc09e4823f58 by mtrofin
[NFC] Disallow unused prefixes under MC/RISCV

Differential Revision: https://reviews.llvm.org/D94836
The file was modifiedllvm/test/MC/RISCV/rv64zfh-valid.s
The file was modifiedllvm/test/MC/RISCV/lit.local.cfg
The file was modifiedllvm/test/MC/RISCV/rv32zfh-valid.s
The file was modifiedllvm/test/MC/RISCV/rv32c-only-valid.s