mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
cf5240642b
commit
fb411c8b8c
@ -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
Block a user