Merge pull request #99 from lioncash/ir-nitpicking
isSameValue in IR.cpp/.h should be returning a boolean value.
This commit is contained in:
commit
5313954a9e
|
@ -1075,7 +1075,7 @@ bool IRBuilder::IsMarkUsed(InstLoc I) const {
|
||||||
return MarkUsed[i];
|
return MarkUsed[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const {
|
bool IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const {
|
||||||
if (Op1 == Op2) {
|
if (Op1 == Op2) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -566,7 +566,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IRBuilder(IRBuilder&); // DO NOT IMPLEMENT
|
IRBuilder(IRBuilder&); // DO NOT IMPLEMENT
|
||||||
unsigned isSameValue(InstLoc Op1, InstLoc Op2) const;
|
bool isSameValue(InstLoc Op1, InstLoc Op2) const;
|
||||||
unsigned getComplexity(InstLoc I) const;
|
unsigned getComplexity(InstLoc I) const;
|
||||||
unsigned getNumberOfOperands(InstLoc I) const;
|
unsigned getNumberOfOperands(InstLoc I) const;
|
||||||
void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2);
|
void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2);
|
||||||
|
|
Loading…
Reference in New Issue