HomePhabricator

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

Authored by courbet on May 17 2019, 2:43 AM.

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_);

llvm-svn: 361009

Details

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