[llvm] [instCombine][bugfix] Fix crash caused by using of cast in instCombineSVECmpNE (PR #102472)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 18 18:35:27 PDT 2024


wuxie2022 wrote:

> Sorry I really don't mean to be a pain here and I'll accept this version of the PR if you continue to see something different to me, but is it possible you're not using a debug or asserts build?

The result of https://www.godbolt.org/z/8McfPMqTz shows that the recommended case crashes when compiled with the debug version of the compiler, but it does not crash when compiled with the release version. On the other hand, the case I uploaded crashes even when compiled with the release version of the compiler. So what I don't understand is, if this case can only detect the crash error when compiled with the debug version of the compiler, is this case really meaningful? If I receive your confirmation, I will make the necessary changes. Once again, thank you for your review!

https://github.com/llvm/llvm-project/pull/102472


More information about the llvm-commits mailing list