[all-commits] [llvm/llvm-project] 0d8b86: CGBuiltin: emit llvm.abs.* instead of neg+icmp+sel...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Sep 27 21:30:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d8b864829073cf6f0a40f1b257d6631fc4145d0
      https://github.com/llvm/llvm-project/commit/0d8b864829073cf6f0a40f1b257d6631fc4145d0
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-09-27 (Wed, 27 Sep 2023)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-macros.c
    M clang/test/CodeGen/abs-overflow.c
    M clang/test/CodeGen/builtin-abs.c
    M clang/test/CodeGenCXX/builtins.cpp

  Log Message:
  -----------
  CGBuiltin: emit llvm.abs.* instead of neg+icmp+select for abs

instcombine will combine neg+icmp+select to llvm.abs.*. Let's just emit
llvm.abs.* in the first place.




More information about the All-commits mailing list