Make cseKill tolerate temps from non-cseable instructions

If you have a killsSources instruction where one of the
sources comes from a non-CSEable instruction that has extra data, this
currently aborts because it tries to call hash() for the extra data
but can't.
Esse commit está contido em:
Jordan DeLong
2013-04-23 15:38:15 -07:00
commit de Sara Golemon
commit 158d32fab5
@@ -1497,7 +1497,9 @@ void TraceBuilder::cseInsert(IRInstruction* inst) {
}
void TraceBuilder::cseKill(SSATmp* src) {
getCSEHashTable(src->getInstruction())->erase(src);
if (src->getInstruction()->canCSE()) {
getCSEHashTable(src->getInstruction())->erase(src);
}
}
SSATmp* TraceBuilder::cseLookup(IRInstruction* inst) {