[all-commits] [llvm/llvm-project] ab1d98: [InstCombine] Add test for incorrect fshr transfor...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Apr 18 22:02:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab1d988e1483895a71dcd257bdcaf6fdb0a83d62
      https://github.com/llvm/llvm-project/commit/ab1d988e1483895a71dcd257bdcaf6fdb0a83d62
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/fsh.ll

  Log Message:
  -----------
  [InstCombine] Add test for incorrect fshr transform (#89338)


  Commit: 46957a138dea339799059ea5bf032e40042ff185
      https://github.com/llvm/llvm-project/commit/46957a138dea339799059ea5bf032e40042ff185
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/fsh.ll

  Log Message:
  -----------
  [InstCombine] Fix incorrect fshr to fshl transform

This transform is only valid if the (modular) shift amount is not
zero.

Proof: https://alive2.llvm.org/ce/z/WBxn-x

Fixes https://github.com/llvm/llvm-project/issues/89338.


Compare: https://github.com/llvm/llvm-project/compare/b64c69d5b1bf...46957a138dea

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list