[all-commits] [llvm/llvm-project] 1c8410: [CodeGenPrepare] Preserve flags (such as nsw/nuw) ...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Thu Apr 25 07:05:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c8410a67d9d7bbadc2e5f2c8698531b1060c8ac
      https://github.com/llvm/llvm-project/commit/1c8410a67d9d7bbadc2e5f2c8698531b1060c8ac
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2024-04-25 (Thu, 25 Apr 2024)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/Transforms/CodeGenPrepare/RISCV/noop-copy-sink.ll

  Log Message:
  -----------
  [CodeGenPrepare] Preserve flags (such as nsw/nuw) in SinkCast (#89904)

As demonstrated in the test change, when deciding to sink a trunc we
were losing its flags. This patch moves to cloning the original
instruction instead.



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