Merge pull request #99 from lioncash/ir-nitpicking

isSameValue in IR.cpp/.h should be returning a boolean value.
This commit is contained in:
Pierre Bourdon 2014-02-23 10:15:48 +01:00
commit 5313954a9e
2 changed files with 2 additions and 2 deletions

View File

@ -1075,7 +1075,7 @@ bool IRBuilder::IsMarkUsed(InstLoc I) const {
return MarkUsed[i];
}
unsigned IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const {
bool IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const {
if (Op1 == Op2) {
return true;
}

View File

@ -566,7 +566,7 @@ public:
private:
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 getNumberOfOperands(InstLoc I) const;
void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2);