GVN: fix hashing of extractvalue.

My last commit did not add the indexes to the hashed value for
extractvalue. Adding that back in.

llvm-svn: 203558
This commit is contained in:
Erik Verbruggen 2014-03-11 10:21:30 +00:00
parent a58dd5db29
commit aab3cfe023
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,10 @@ Expression ValueTable::create_expression(Instruction *I) {
for (InsertValueInst::idx_iterator II = E->idx_begin(), IE = E->idx_end();
II != IE; ++II)
e.varargs.push_back(*II);
} else if (ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(I)) {
for (ExtractValueInst::idx_iterator II = EVI->idx_begin(),
IE = EVI->idx_end(); II != IE; ++II)
e.varargs.push_back(*II);
}
return e;