[llvm] [DFAJumpThreading] Extends the bitwidth of state from uint64_t to APInt (PR #78134)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 15 06:54:23 PST 2024


XChy wrote:

> I think this is causing buildbot failure: https://lab.llvm.org/buildbot/#/builders/168/builds/18062

It seemed that I triggered another bug in this pass with the same testcase in coincidence, even without this patch...

The testcase without `i128`:
```llvm
define void @anotherbug(i1 %c) {
entry:
  br i1 %c, label %.split.preheader, label %.split.preheader

.split.preheader:
  br label %.split

.split:
  %0 = phi i32 [ 0, %.split.preheader ], [ -1, %.split ]
  switch i32 %0, label %end [
  i32 -1, label %end
  i32 0, label %.split
  ]

end:
  ret void
}
```

https://github.com/llvm/llvm-project/pull/78134


More information about the llvm-commits mailing list