]> granicus.if.org Git - llvm/commit
[InstSimplify] Rename SimplifyFPUnOp and SimplifyFPBinOp
authorJay Foad <jay.foad@gmail.com>
Wed, 24 Jul 2019 12:50:10 +0000 (12:50 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 24 Jul 2019 12:50:10 +0000 (12:50 +0000)
commit1f1f6bfa5f66ac656f261aa26b8b74fd7391e343
treea365804b008be0fc4af883767bd26611e8d371ad
parent427c89429ebe484a7e19437e8eed9d65889fe622
[InstSimplify] Rename SimplifyFPUnOp and SimplifyFPBinOp

Summary:
SimplifyFPBinOp is a variant of SimplifyBinOp that lets you specify
fast math flags, but the name is misleading because both functions
can simplify both FP and non-FP ops. Instead, overload SimplifyBinOp
so that you can optionally specify fast math flags.

Likewise for SimplifyFPUnOp.

Reviewers: spatel

Reviewed By: spatel

Subscribers: xbolva00, cameron.mcinally, eraman, hiraditya, haicheng, zzheng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64902

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366902 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InlineCost.cpp
lib/Analysis/InstructionSimplify.cpp
lib/Analysis/LoopUnrollAnalyzer.cpp