mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[DAGCombine] Remove LoadedSlice::Cost default 'ForCodeSize' constructor arguments. NFCI.
These were always being passed in and it allowed me to add the explicit tag to stop a cppcheck warning about 1 argument constructors. llvm-svn: 370189
This commit is contained in:
parent
ffe94e8e3f
commit
4ee564a42f
@ -14132,7 +14132,7 @@ struct LoadedSlice {
|
||||
/// Helper structure used to compute the cost of a slice.
|
||||
struct Cost {
|
||||
/// Are we optimizing for code size.
|
||||
bool ForCodeSize;
|
||||
bool ForCodeSize = false;
|
||||
|
||||
/// Various cost.
|
||||
unsigned Loads = 0;
|
||||
@ -14141,10 +14141,10 @@ struct LoadedSlice {
|
||||
unsigned ZExts = 0;
|
||||
unsigned Shift = 0;
|
||||
|
||||
Cost(bool ForCodeSize = false) : ForCodeSize(ForCodeSize) {}
|
||||
explicit Cost(bool ForCodeSize) : ForCodeSize(ForCodeSize) {}
|
||||
|
||||
/// Get the cost of one isolated slice.
|
||||
Cost(const LoadedSlice &LS, bool ForCodeSize = false)
|
||||
Cost(const LoadedSlice &LS, bool ForCodeSize)
|
||||
: ForCodeSize(ForCodeSize), Loads(1) {
|
||||
EVT TruncType = LS.Inst->getValueType(0);
|
||||
EVT LoadedType = LS.getLoadedType();
|
||||
|
Loading…
Reference in New Issue
Block a user