[Hexagon] Find speculative loop preheader in hardware loop generation
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 27 Jul 2016 21:20:54 +0000 (21:20 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 27 Jul 2016 21:20:54 +0000 (21:20 +0000)
commit06a2b6b1ee6feaa1cd53200d7a13e943507e715e
treee6bb9885bc2b1da33e786fb4af353092f35529bf
parente7605e28f925df983c96805946927297c874c0b6
[Hexagon] Find speculative loop preheader in hardware loop generation

Before adding a new preheader block, check if there is a candidate block
where the loop setup could be placed speculatively. This will be off by
default.

llvm-svn: 276919
llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
llvm/test/CodeGen/Hexagon/hwloop-preh.ll [new file with mode: 0644]