[clang-tidy] Add fine-graded configuration for 'bugprone-exception-escape' (#164081)
Need these options to complete
https://github.com/llvm/llvm-project/issues/160825, but I think it's
generally beneficial to fine-tune this check.
---------
Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
Co-authored-by: Victor Chernyakin <chernyakin.victor.j at outlook.com>
[NFC][SPIRV] Make the zero-length-array.ll test explicit about what is generated (#166910)
This patch doesn't change anything. Just adds more explicit checks to
verify what is generated in this case when an alloca has a zero-sized
array.
I'd expect an `OpRuntimeArray`, but nothing is generated.
[clang-tidy] Rename 'cert-err60-cpp' to 'bugprone-exception-copy-constructor-throws' (#164061)
Closes https://github.com/llvm/llvm-project/issues/157299.
---------
Co-authored-by: Victor Chernyakin <chernyakin.victor.j at outlook.com>
[Polly] Retain vectorization for fallback loop when RTC is unsatisfiable (#165525)
When Polly generates a false runtime condition (RTC), the associated
Polly generated loop is never executed and is eventually eliminated. As
a result, the fallback loop becomes the default execution path.
Disabling vectorization for this fallback loop will be
counterproductive. This patch ensures that vectorization is only
disabled when the RTC is not false (no Codegen failure).
[SPIRV] Fix failing assertion in SPIRVAsmPrinter
When +SPV_KHR_float_controls2 and there was a non-int OpConstantZero we
would call MI.getOperand(1).getImm() when MI was not an OpTypeInt (the
associated test has an OpTypeArray zeroinitialized).
This patch adds the missing condition.
[WebAssembly] Implement more of getCastInstrCost (#164612)
Fill out more information for sign and zero extend and add some truncate
information; however, the primary change is to int/fp conversions. In
particular, fp to (narrow) int appears to be relatively expensive.
DAG: Handle AssertNoFPClass in computeKnownBits
It's possible to determine the sign bit if the value is known
one of the positive/negative classes and not-nan.