<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96294>96294</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10353: bool llvm::LoopVectorizePass::processLoop(llvm::Loop*): Assertion `VF.Width == Width && "VPlan cost model and legacy cost model disagreed"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
vectorization,
crash-on-valid,
llvm
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
[calcc-0ebd65.c.gz](https://github.com/user-attachments/files/15926158/calcc-0ebd65.c.gz)
[calcc-0ebd65.sh.gz](https://github.com/user-attachments/files/15926159/calcc-0ebd65.sh.gz)
Stack backtrace is
#11 0x0000000003adfddd llvm::LoopVectorizePass::processLoop(llvm::Loop*) /home/dcb40b/llvm/trunk/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10353:9
#12 0x0000000003ae347f llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo*, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AssumptionCache&, llvm::LoopAccessInfoManager&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) /home/dcb40b/llvm/trunk/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10446:27
#13 0x0000000003ae4382 llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/dcb40b/llvm/trunk/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10486:5
#14 0x00000000034fbd6d llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/dcb40b/llvm/trunk/llvm/include/llvm/IR/PassManagerInternal.h:91:3
#15 0x0000000001ae5b21 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/dcb40b/llvm/trunk/llvm/include/llvm/IR/PassManagerImpl.h:53:18
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcVlFvozgQ_jXOC2oEYyDwwAPbFKnSrq7aVr3nwZ4EXw3mbBNd--tPDm2TNNFddbcrnS6KEuEZ5pvvmw9jdE5tB6KKZV9Ytl7g5DtjKylanqSL1sjnEBGohbiKqZV5thTL7QvL1gyKzvvRMV4zaBg0W-W7qV0K0zNoJkf2Cr1H0fU0eMeg2ShN4T_JSsiTrGDQnNeFksVrFtcfQV33Y1DLj6hz4XfY_e-9R_EUtSievEVBkXLRcZgBT5Io_iN--3CUGyllpPWuD43x-qsx4yMJb6x6oTt0bl4erRHkXIgyKE7TGdQMyohB05meGDRStGncMmj2edB4Ow1Ph0utQuzB4uA2xvaB4zsig-akg6UYR8brJOYZZ7wuDzzglAfxdLX5ex52Gm77UZ9waKZBeGUGBjmD66Ma9wI12pud0dPFeMC4HTbmLPCAdkv-neHFnLXp1YDe2AdLdBb9oo14aiz9PtEgnucC9SWQr6q1aC9nrKnHQZL8ooKhPiDUzk39GHhdo-jOOwjkahGGHmp_wwG3ZM-yfhm96tULhjrfqUf7dNMr7y9k3lkTHH0_9f1xvz_bN2maM17D6mAc_sE4KS_gU8b5nGnqAfWzU-5NMX594SZ-s7_vp5MvAvnswD094Z5uWpkfP_ySPCr9Oi907puRpC8zOPPKqWb_SJLw_S9orQahJ0mHhdvvDJq9IDPQ7eDJDqiXXdiTEsZrftA4O9Y4QcpaSI6fg0OZTyj7_5OuH2fZ9vt5Usy6LWTFZclLXFCVrJKizNOSl4uuWm1kESe5bAlWbZEWeZyv8s0m5rIsJRd8oSqIIY1zSJI4yXi-bOM8plRQCW2KZV6wNKYelV6GhpbGbhfKuYmqMocyXWhsSbv9GQJg92phnBUDBtcMQFh03ZUZrnaolXxfnvlBOHrYKlxctdPWsTTWynl3QPPKa6r-_asvao3RP-JFHWrVzpENLCOWx4_N8lclfRcxvmZ8Hb1ehMnnEQN4vNM4RMI4H_VhQ4hwkJGmLYrn41WpHG4t0SzRKtqg0iSXi8nq6i9OPm_KBAVHa34j4YOPwoyCPPOYdhX8GQAA__9SuBhd">