[all-commits] [llvm/llvm-project] b7a8d9: [VectorCombine] Combine scalar fneg with insert/ex...

hanbeom via All-commits all-commits at lists.llvm.org
Tue Dec 17 23:48:03 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7a8d9584c787b95ddf6931e915fb643b28f91e1
      https://github.com/llvm/llvm-project/commit/b7a8d9584c787b95ddf6931e915fb643b28f91e1
  Author: hanbeom <kese111 at gmail.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/X86/extract-fneg-insert.ll

  Log Message:
  -----------
  [VectorCombine] Combine scalar fneg with insert/extract to vector fneg when length is different (#115209)

insertelt DestVec, (fneg (extractelt SrcVec, Index)), Index
-> shuffle DestVec, (shuffle (fneg SrcVec), poison, SrcMask), Mask

Original combining left the combine between vectors of different lengths as a TODO.



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