[PATCH] [Hexagon] Check for underflow/wrap in hardware loop pass

Brendon Cahoon bcahoon at codeaurora.org
Tue May 12 11:59:29 PDT 2015


Hi sundeepk, iajbar,

If the loop trip count may underflow or wrap, the compiler should not generate a hardware loop since the trip count will be incorrect.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9713

Files:
  lib/Target/Hexagon/HexagonHardwareLoops.cpp
  test/CodeGen/Hexagon/hwloop-pos-ivbump1.ll
  test/CodeGen/Hexagon/hwloop-recursion.ll
  test/CodeGen/Hexagon/hwloop-wrap.ll
  test/CodeGen/Hexagon/hwloop-wrap2.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9713.25607.patch
Type: text/x-patch
Size: 26869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/eb151df5/attachment.bin>


More information about the llvm-commits mailing list