[SelectionDag] Updated FoldConstantArithmetic method signature in preparation for...
author@justice_adams (Justice Adams) <justice.adams@sony.com>
Fri, 24 Jan 2020 22:57:43 +0000 (17:57 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 24 Jan 2020 23:00:58 +0000 (18:00 -0500)
commitdaee63f97412441e99912c91e0655f3b12b9bc35
treea7e250ee9810530c57f6040331f39cebc2ff61ec
parent1e487e4c16821b6de3d651f618274df90bd3fad9
[SelectionDag] Updated FoldConstantArithmetic method signature in preparation for merge with FoldConstantVectorArithmetic

Updated FoldConstantArithmetic method signature to match that of
FoldConstantVectorArithmetic in preparation for merging the two
functions together

https://bugs.llvm.org/show_bug.cgi?id=36544

This is the first step in combining the various
FoldConstantVectorArithmetic and FoldConstantVectorArithmetic
functions into one FoldConstantArithmetic function.

Differential Revision: https://reviews.llvm.org/D72870
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp