[all-commits] [llvm/llvm-project] 6f7370: [InstCombine] Pull vector reverse through fneg (#1...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Jun 30 08:15:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f7370ced630ec1994456a979ca10ac26e3dc0a7
      https://github.com/llvm/llvm-project/commit/6f7370ced630ec1994456a979ca10ac26e3dc0a7
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/vector-reverse.ll

  Log Message:
  -----------
  [InstCombine] Pull vector reverse through fneg (#146349)

This follows on from
https://github.com/llvm/llvm-project/pull/144933#issuecomment-2992372627,
and allows us to remove the reverse (fneg (reverse x)) combine.

A separate patch will handle the case for fabs. I haven't checked if we
perform this canonicalization for either unops or binops for vp.reverse



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