[all-commits] [llvm/llvm-project] c5ea42: Revert "[LoopUnroll] Directly update DT instead of...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jan 19 17:04:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5ea42bcf48c8f3d3e35a6bff620b06d2a499108
      https://github.com/llvm/llvm-project/commit/c5ea42bcf48c8f3d3e35a6bff620b06d2a499108
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

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

  Log Message:
  -----------
  Revert "[LoopUnroll] Directly update DT instead of DTU."

This reverts commit d0907ce7ed9f159562ca3f4cfd8d87e89e93febe.

Causes `opt -passes=loop-unroll-full` to crash on

```
define void @foo() {
bb:
  br label %bb1

bb1:                                              ; preds = %bb1, %bb1, %bb
  switch i1 true, label %bb1 [
    i1 true, label %bb2
    i1 false, label %bb1
  ]

bb2:                                              ; preds = %bb1
  ret void
}
```




More information about the All-commits mailing list