HomePhabricator

Fix an ordering bug in the scalarizer.

Description

Fix an ordering bug in the scalarizer.

I've added a new test case that causes the scalarizer to try and use
dead-and-erased values - caused by the basic blocks not being in
domination order within the function. To fix this, instead of iterating
through the blocks in function order, I walk them in reverse post order.

Differential Revision: https://reviews.llvm.org/D52540

Details

Committed
sheredomOct 10 2018, 2:27 AM
Differential Revision
D52540: Fix an ordering bug in the scalarizer.
Parents
rL344127: [llvm-exegesis] Remove unused variable, add more semantic to Instruction.
Branches
Unknown
Tags
Unknown