[PATCH] D42312: [ARM] Cleanup part of ARMBaseInstrInfo::optimizeCompareInstr (NFCI).

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 12:49:16 PST 2018


efriedma added a comment.

> since I had to convert I and E and compare against E and the beginning of the block

You should be able to tell which of "I != B" or "I != E" is the important exit condition before you enter the loop. Either E and I are in the same block (so `I != E` will fail before `I != B`), or they're not in the same block (so `I != E` will always be true).


https://reviews.llvm.org/D42312





More information about the llvm-commits mailing list