[all-commits] [llvm/llvm-project] 5c8021: [IRBuilder] Move CreateNot() to fold API

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 1 05:49:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c8021777c3a2bc2c4a97e8913929a6ca969db95
      https://github.com/llvm/llvm-project/commit/5c8021777c3a2bc2c4a97e8913929a6ca969db95
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-01 (Fri, 01 Jul 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/InstSimplifyFolder.h
    M llvm/include/llvm/Analysis/TargetFolder.h
    M llvm/include/llvm/IR/ConstantFolder.h
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/IRBuilderFolder.h
    M llvm/include/llvm/IR/NoFolder.h

  Log Message:
  -----------
  [IRBuilder] Move CreateNot() to fold API

Drop the IRBuilderFolder method entirely and base this on
CreateXor(V, -1) instead, so this will now go through FoldBinOp.

May not be NFC if the InstSimplifyBuilder is used.




More information about the All-commits mailing list