The loop unrolling feature aims to track the maximum possible steps a loop can make. In order to implement this, it investigates the initial value of the counter variable and the bound number. (There has to be known.)
These numbers are used as llvm::APInts, however, it was not checked if their bitwidths are the same which lead to some crashes.
This revision solves this problem by extending the "shorter" one (to the length of the "longer" one).
For the detailed bug report, see: https://bugs.llvm.org/show_bug.cgi?id=34943
Details
Details
- Reviewers
NoQ zaks.anna dcoughlin xazax.hun - Commits
- rG1496d188a071: [analyzer] LoopUnrolling: check the bitwidth of the used numbers (pr34943)
rC316830: [analyzer] LoopUnrolling: check the bitwidth of the used numbers (pr34943)
rL316830: [analyzer] LoopUnrolling: check the bitwidth of the used numbers (pr34943)
Diff Detail
Diff Detail
- Repository
- rL LLVM