forked from OSchip/llvm-project
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:
parent
a58dd5db29
commit
aab3cfe023
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue