SuccessChanges

Summary

  1. Moved dwarf_eh_resume.ll from Generic to X86 folder (details)
  2. [Support] Explicitly state that KnownBits::getMinValue/getMaxValue are UNSIGNED values. NFCI. (details)
  3. [Support] Add KnownBits::getSignedMinValue/getSignedMaxValue helpers. (details)
  4. [InstCombine] foldICmpUsingKnownBits - use KnownBits signed/unsigned getMin/MaxValue helpers. NFCI. (details)
Commit ce4413e48941eeb85769e35b1a31112f39d9cc4c by ybrevnov
Moved dwarf_eh_resume.ll from Generic to X86 folder

Make test case x86 specific.

Reviewed By: xbolva00

Differential Revision: https://reviews.llvm.org/D93803
The file was removedllvm/test/CodeGen/Generic/dwarf_eh_resume.ll
The file was addedllvm/test/CodeGen/X86/dwarf_eh_resume.ll
Commit fb468953082c1fe97d42e6eabe8d3511bdb4054f by llvm-dev
[Support] Explicitly state that KnownBits::getMinValue/getMaxValue are UNSIGNED values. NFCI.

Update the comment to make this clear, following the same approach as APInt.
The file was modifiedllvm/include/llvm/Support/KnownBits.h
Commit 6895581fd2c1cbe1a51d157d40219b7bb51a9cd5 by llvm-dev
[Support] Add KnownBits::getSignedMinValue/getSignedMaxValue helpers.

Add unit test coverage - a followup will update InstCombineCompares.cpp to use this and could be used by D86578 as well.
The file was modifiedllvm/unittests/Support/KnownBitsTest.cpp
The file was modifiedllvm/include/llvm/Support/KnownBits.h
Commit 89abe1cf83a037e5e5c22d07d1b2bd456def5bbe by llvm-dev
[InstCombine] foldICmpUsingKnownBits - use KnownBits signed/unsigned getMin/MaxValue helpers. NFCI.

Replace the local compute*SignedMinMaxValuesFromKnownBits methods with the equivalent KnownBits helpers to determine the min/max value ranges.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCompares.cpp