When expanding the LoopStart, we try to remove the iteration count calculation. However, if part of the calculation was also used to calculate the number of elements we could end up deleting instructions that were required to feed DLSTP/WLSTP.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks like a straightforward fix to me.
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp | ||
---|---|---|
906 | nit: you can ignore this remark, but perhaps time to rename Ignore to something 'scarier' such as UnsafeToRemove (the variable is called Ignore, but the test file dont-ignore-vctp.mir, if you see what I mean). | |
llvm/test/CodeGen/Thumb2/LowOverheadLoops/dont-ignore-vctp.mir | ||
6 | nit: don't think it matters in this case, but perhaps rename the function name |
nit: you can ignore this remark, but perhaps time to rename Ignore to something 'scarier' such as UnsafeToRemove (the variable is called Ignore, but the test file dont-ignore-vctp.mir, if you see what I mean).