[all-commits] [llvm/llvm-project] 27e7db: Revert "[SCCP] convert signed div/rem to unsigned ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 6 10:22:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27e7db54eb2fdb1e29c83b4b0acf90d558eba141
      https://github.com/llvm/llvm-project/commit/27e7db54eb2fdb1e29c83b4b0acf90d558eba141
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SCCP.cpp
    M llvm/test/Transforms/PhaseOrdering/srem.ll
    M llvm/test/Transforms/SCCP/binaryops-range-special-cases.ll
    M llvm/test/Transforms/SCCP/divrem.ll

  Log Message:
  -----------
  Revert "[SCCP] convert signed div/rem to unsigned for non-negative operands"

This reverts commit fe1f3cfc2669aca387a45c8ce615b45c1db50fc6.

It looks like this commit breaks building llvm-test-suite.

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
    }




More information about the All-commits mailing list