[llvm] [LoopPeel] Remove known trip count restriction when peeling last. (PR #140792)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 12:25:14 PDT 2025
momchil-velikov wrote:
We've seen a failure while compiling `CMake/Source/cmJSONState.cxx` that disappears after reverting this patch.
```
Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file Casting.h, line 578.
...
#9 0x0000000116257d44 llvm::IntegerType::getBitWidth() const (/Users/chill/dev/llvm/main/out/install/debug/lib/libLLVMCore.dylib+0x2bd44)
#10 0x00000001162d6528 llvm::ConstantInt::get(llvm::Type*, unsigned long long, bool) (/Users/chill/dev/llvm/main/out/install/debug/lib/libLLVMCore.dylib+0xaa528)
#11 0x00000001128cbb40 llvm::peelLoop(llvm::Loop*, unsigned int, bool, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::DominatorTree&, llvm::AssumptionCache*, bool, llvm::ValueMap<llvm::Value const*, llvm::WeakTrackingVH, llvm::ValueMapConfig<llvm::Value const*, llvm::sys::SmartMutex<false>>>&) (/Users/chill/dev/llvm/main/out/install/debug/lib/libLLVMTransformUtils.dylib+0x14bb40)
```
https://github.com/llvm/llvm-project/pull/140792
More information about the llvm-commits
mailing list