HomePhabricator

Re-land r360859: "[MergeICmps] Simplify the code."

Description

Re-land r360859: "[MergeICmps] Simplify the code."

With a fix for PR41917: The predecessor list was changing under our feet.

  • for (BasicBlock *Pred : predecessors(EntryBlock_)) {

+ while (!pred_empty(EntryBlock_)) {
+ BasicBlock* const Pred = *pred_begin(EntryBlock_);

Details

Committed
courbetMay 17 2019, 2:43 AM
Parents
rL361008: [AMDGPU] detect WaW hazards when moving/merging load/store instructions
Branches
Unknown
Tags
Unknown