GVN: fix hashing of extractvalue.

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erik Verbruggen 2014-03-11 10:21:30 +00:00
parent cf5240642b
commit fb411c8b8c

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;