[LoopVersioning] Allow versionLoop to create plain branch inst when no runtime check...
authorYueh-Ting Chen <yueh.ting.chen@gmail.com>
Thu, 16 Dec 2021 08:26:20 +0000 (00:26 -0800)
committereopXD <eop.chen@sifive.com>
Thu, 16 Dec 2021 08:41:29 +0000 (00:41 -0800)
commitfbf6c8ac1589a4be68ee549257f1d528937ac582
tree144d383f325a1dc0f3ac84cfebffcfd35e33891e
parent68cb111f3a5802f9319f7343dd1838e4fb76f004
[LoopVersioning] Allow versionLoop to create plain branch inst when no runtime check is specified

After this function call, the LLVM IR would look like the following:

```
if (true)
  /* NonVersionedLoop */
else
  /* VersionedLoop */
```

Reviewed By: Whitney

Differential Revision: https://reviews.llvm.org/D104631
llvm/include/llvm/Transforms/Utils/LoopVersioning.h
llvm/lib/Transforms/Utils/LoopVersioning.cpp