[all-commits] [llvm/llvm-project] 40999c: [SVE] Fix SVEDup0 matching -0.0f

Stephen Long via All-commits all-commits at lists.llvm.org
Tue Aug 30 11:07:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40999cbd93795fb928ff1e0d48bd74377218651a
      https://github.com/llvm/llvm-project/commit/40999cbd93795fb928ff1e0d48bd74377218651a
  Author: Stephen Long <steplong at quicinc.com>
  Date:   2022-08-30 (Tue, 30 Aug 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/sve-vselect-imm.ll

  Log Message:
  -----------
  [SVE] Fix SVEDup0 matching -0.0f

Because of D128669, CPY is being used to zero active lanes even in the case of -0.0f. This patch checks for floating point positive zero. That way SVEDup0 won't match -0.0f.

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

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D132880




More information about the All-commits mailing list