[all-commits] [llvm/llvm-project] fbf6c8: [LoopVersioning] Allow versionLoop to create plain...

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Thu Dec 16 00:41:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbf6c8ac1589a4be68ee549257f1d528937ac582
      https://github.com/llvm/llvm-project/commit/fbf6c8ac1589a4be68ee549257f1d528937ac582
  Author: Yueh-Ting Chen <yueh.ting.chen at gmail.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopVersioning.h
    M llvm/lib/Transforms/Utils/LoopVersioning.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list