FailedChanges

Summary

  1. [llvm-objcopy][NFC] refactor error handling. part 2. (details)
  2. Typo fix; NFC (details)
  3. [InstSimplify] add tests for fcmp with casted op; NFC (details)
  4. [ValueTracking] enhance isKnownNeverInfinity to understand sitofp (details)
  5. [CostModel] add cl option to check size and latency costs; NFC (details)
Commit ababcd2ab4910a4ea2ba5695c0088a1bdcd974b6 by a.v.lapshin
[llvm-objcopy][NFC] refactor error handling. part 2.

Remove usages of special error reporting functions(error(),
reportError()). This patch is extracted from D87987.
Errors are reported as Expected<>/Error returning values.
This part is for COFF subfolder of llvm-objcopy.

Testing: check-all.

Differential Revision: https://reviews.llvm.org/D88213
The file was modifiedllvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
The file was modifiedllvm/tools/llvm-objcopy/COFF/Object.cpp
The file was modifiedllvm/tools/llvm-objcopy/COFF/Object.h
Commit de55ebe3bbc77882901ae2b9654503b7611b28f3 by aaron
Typo fix; NFC
The file was modifiedclang/lib/Parse/ParseDecl.cpp
Commit 71f25ac8ca5de44d759da49df5549f3a89c2e536 by spatel
[InstSimplify] add tests for fcmp with casted op; NFC

This shows missing analysis in ValueTracking's isKnownNeverInfinity().
The file was modifiedllvm/test/Transforms/InstSimplify/floating-point-compare.ll
Commit 645c53a9d923c8d7f6a4b49aa02126aec23dc667 by spatel
[ValueTracking] enhance isKnownNeverInfinity to understand sitofp

As discussed in D87877, instcombine already has this fold,
but it was missing from the more general ValueTracking logic.

https://alive2.llvm.org/ce/z/PumYZP
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/floating-point-compare.ll
Commit 816b0a9c9f46cbfce253f49dad7cbf93867307ac by spatel
[CostModel] add cl option to check size and latency costs; NFC

This is a setting used by SimplifyCFG, LoopUnroll, and InlineCost,
but there is apparently no direct test coverage for any of those
cost model values.
The file was addedllvm/test/Analysis/CostModel/X86/fmaxnum-size-latency.ll
The file was addedllvm/test/Analysis/CostModel/X86/fminnum-size-latency.ll
The file was modifiedllvm/lib/Analysis/CostModel.cpp