If we didn't find the extact ZExt expr in the rewrite map, check if
there's an entry for a smaller ZExt we can use instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
14975 | If Bitwidth is 8 * 9 = 72, at some point you will end up with BitWidth = 9 and enter this loop, and then on division you will lose a meaningful last bit. Was it your intention? I think Bitwidth % 8 == 0 thingy should be in while loop. |
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
14975 | Thanks, updated! |
If Bitwidth is 8 * 9 = 72, at some point you will end up with BitWidth = 9 and enter this loop, and then on division you will lose a meaningful last bit. Was it your intention?
I think Bitwidth % 8 == 0 thingy should be in while loop.