[all-commits] [llvm/llvm-project] 8e514c: Reapply [TLI] Fix replace-with-veclib crash with i...

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Tue Jan 16 02:00:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e514c572e44eda237417236b4c92176dfce9cd9
      https://github.com/llvm/llvm-project/commit/8e514c572e44eda237417236b4c92176dfce9cd9
  Author: Paschalis Mpeis <paschalis.mpeis at arm.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/CodeGen/ReplaceWithVeclib.cpp
    M llvm/unittests/Analysis/CMakeLists.txt
    A llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp

  Log Message:
  -----------
  Reapply [TLI] Fix replace-with-veclib crash with invalid arguments (#77945)

Fix a crash of `replace-with-veclib` pass, when the arguments of the TLI
mapping do not match the original call.
Now, it simply ignores such cases.

Test require assertions as it accesses programmatically the debug log.

Reapplies reverted PR #77112




More information about the All-commits mailing list