[PATCH] D133198: [SCCP] convert signed div/rem to unsigned for non-negative operands

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 10:23:30 PDT 2022


fhahn added a comment.

It looks like this is causing a crash when building `llvm-test-suite`. Ive reverted the commit for now to unblock some bots.

To reproduce, run `opt -passes=ipsccp` on the IR below.

  @g = internal global i32 256, align 4
  
  define void @test() {
  entry:
    %0 = load i32, ptr @g, align 4
    %div = sdiv i32 %0, undef
    ret void
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133198/new/

https://reviews.llvm.org/D133198



More information about the llvm-commits mailing list