1. Aug 16, 2021
  2. Aug 15, 2021
    • Roman Lebedev's avatar
      [NFCI][IndVars] rewriteLoopExitValues(): nowadays SCEV should not change `GEP` base pointer · 35a8bdc7
      Roman Lebedev authored
      Currently/previously, while SCEV guaranteed that it produces the same value,
      the way it was produced may be illegal IR, so we have an ugly check that
      the replacement is valid.
      
      But now that the SCEV strictness wrt the pointer/integer types has been improved,
      i believe this invariant is already upheld by the SCEV itself, natively.
      
      I think we should add an assertion, wait for a week, and then, if all is good,
      rip out all this checking.
      Or we could just do the latter directly i guess.
      
      This reverts commit rL127839.
      
      Reviewed By: nikic
      
      Differential Revision: https://reviews.llvm.org/D108043
      35a8bdc7
    • Nikita Popov's avatar
      [IndVars] Don't check for pointer exit count (NFC) · 944dfa49
      Nikita Popov authored
      After recent changes, exit counts and BE taken counts are always
      integers, so convert these to assertions.
      
      While here, also convert the loop invariance checks to asserts.
      Exit counts are always loop invariant.
      944dfa49