[llvm] [llvm] Issues found PVS studio static analyzer. LoopUnrollAndJam.cpp (PR #170162)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 08:41:24 PST 2025


Bhuvan1527 wrote:

> How does this preserve the existing semantics or serve as an optimization in any way?

Hi @boomanaiden154 
Well, I went with the logic that, 

When var J = I, then we are checking the dependency of an instruction with itself, is that check even necessary? 

So, this will save the existing semantics. I even ran all the llvm tests before raising the pr. 

And the optimization can be reducing an iteration of J loop I believe. 

Would love to discuss more, if you have question. I'm new to LLVM. So lets learn. 

Thanks

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


More information about the llvm-commits mailing list