[all-commits] [llvm/llvm-project] 6c348e: [HWLoops] Stop converting to a while loop when it ...

Sam Tebbs via All-commits all-commits at lists.llvm.org
Fri Jul 17 03:47:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c348e4067b0826449caef2f77af2fb67c27040a
      https://github.com/llvm/llvm-project/commit/6c348e4067b0826449caef2f77af2fb67c27040a
  Author: Sam Tebbs <samuel.tebbs at arm.com>
  Date:   2020-07-17 (Fri, 17 Jul 2020)

  Changed paths:
    M llvm/lib/CodeGen/HardwareLoops.cpp
    A llvm/test/CodeGen/Thumb2/LowOverheadLoops/exitcount.ll

  Log Message:
  -----------
  [HWLoops] Stop converting to a while loop when it would be unsafe to

There were cases where a do-while loop would be converted to a while
loop before finding out that it would be unsafe to expand the SCEV in
this situation and then bailing out of hardware loop conversion.

This patch checks if it would be unsafe to expand the SCEV and if so stops converting the do-while into a while, allowing conversion to a hardware loop.

Differential Revision: https://reviews.llvm.org/D83953




More information about the All-commits mailing list