[all-commits] [llvm/llvm-project] 21933b: [IRBuilder] Move CreateNeg() to fold API
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jul 1 05:56:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 21933b2f7f02cbbf67703d50da660ffc8119f84a
https://github.com/llvm/llvm-project/commit/21933b2f7f02cbbf67703d50da660ffc8119f84a
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 CreateNeg() to fold API
Remove the CreateNeg() method from IRBuilderFolder and base it on
CreateSub(0, V) instead, which will call FoldNoWrapBinaryOp().
May not be NFC if InstSimplifyFolder is used.
More information about the All-commits
mailing list