ssa: removes unnecessary definition (#2283)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
@@ -554,7 +554,6 @@ func (b *builder) findValue(typ Type, variable Variable, blk *basicBlock) Value
|
|||||||
|
|
||||||
if uniqueValue != ValueInvalid {
|
if uniqueValue != ValueInvalid {
|
||||||
// If all the predecessors have the same definition, we can use that value.
|
// If all the predecessors have the same definition, we can use that value.
|
||||||
b.DefineVariable(variable, uniqueValue, blk)
|
|
||||||
b.alias(tmpValue, uniqueValue)
|
b.alias(tmpValue, uniqueValue)
|
||||||
return uniqueValue
|
return uniqueValue
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user