Changes

Summary

  1. [llvm-cov gcov] Change case to match the prevailing style && replace getString with readString (details)
  2. [llvm-cov gcov] Support GCC 12 format (details)
  3. [InstSimplify] icmp poison, X -> poison (details)
Commit e85eecff30685ef135d191f654a89f5c3b64fb5e by i
[llvm-cov gcov] Change case to match the prevailing style && replace getString with readString
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was modifiedllvm/include/llvm/ProfileData/GCOV.h
Commit 0873016ceff3ded84bfeaa37b39be675fa178f7d by i
[llvm-cov gcov] Support GCC 12 format

GCC 12 will change the length field to represent the number of bytes instead of
32-bit words. This avoids padding for strings.
The file was modifiedllvm/include/llvm/ProfileData/GCOV.h
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was addedllvm/test/tools/llvm-cov/gcov/Inputs/gcov-12.gcno
The file was addedllvm/test/tools/llvm-cov/gcov/Inputs/gcov-12.gcda
The file was addedllvm/test/tools/llvm-cov/gcov/gcov-12.c
Commit 09e8c0d5aaef9f1157460a3ae6ae77c7a2f0966f by aqjune
[InstSimplify] icmp poison, X -> poison

This adds a simple transformation from icmp with poison constant to poison.
Comparing poison with something else is poison, so this is okay.

https://alive2.llvm.org/ce/z/e8iReb
https://alive2.llvm.org/ce/z/q4MurY
The file was modifiedllvm/test/Transforms/InstCombine/udiv-simplify.ll
The file was modifiedllvm/test/Transforms/InstCombine/getelementptr.ll
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/icmp.ll