[all-commits] [llvm/llvm-project] 905eff: [x86] add test to show potential miscompile with u...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri May 13 08:00:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 905eff45a0af26cc0e877ddff846c97c77cead0c
      https://github.com/llvm/llvm-project/commit/905eff45a0af26cc0e877ddff846c97c77cead0c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-13 (Fri, 13 May 2022)

  Changed paths:
    M llvm/test/CodeGen/X86/combine-urem.ll

  Log Message:
  -----------
  [x86] add test to show potential miscompile with undef value; NFC

This is based on:
c2a5a87500d92c


  Commit: e52e1dab2a25d77a135b891378ad98ae339781ed
      https://github.com/llvm/llvm-project/commit/e52e1dab2a25d77a135b891378ad98ae339781ed
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-13 (Fri, 13 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/combine-urem.ll

  Log Message:
  -----------
  [SDAG] freeze operand when expanging urem

This is a potential miscompile as discussed in issue #55291.

The related IR transform was patched with:
d428f09b2c9d49f6a32


Compare: https://github.com/llvm/llvm-project/compare/7e3ea55da88a...e52e1dab2a25


More information about the All-commits mailing list