]> granicus.if.org Git - llvm/commit
[ModuloSchedule] removeBranch() *before* creating the trip count condition
authorJames Molloy <jmolloy@google.com>
Thu, 3 Oct 2019 17:10:32 +0000 (17:10 +0000)
committerJames Molloy <jmolloy@google.com>
Thu, 3 Oct 2019 17:10:32 +0000 (17:10 +0000)
commit9f29eb70dcc07369dde41421c597b31363976263
tree15a50277bad63138a25db62b54ff6a20fb1c59f4
parent86f1fe8edf669769a02038f81403880c1511d0c5
[ModuloSchedule] removeBranch() *before* creating the trip count condition

The Hexagon code assumes there's no existing terminator when inserting its
trip count condition check.

This causes swp-stages5.ll to break. The generated code looks good to me,
it is likely a permutation. I have disabled the new codegen path to keep
everything green and will investigate along with the other 3-4 tests
that have different codegen.

Fixes expensive-checks build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ModuloSchedule.cpp
test/CodeGen/Hexagon/swp-stages5.ll