llvm-project
25da8e5a - Reapply "[LICM] Fold associative binary ops to promote code hoisting (#81608)" (#100377)

Commit
1 year ago
Reapply "[LICM] Fold associative binary ops to promote code hoisting (#81608)" (#100377) This reapplies a more strict version of https://github.com/llvm/llvm-project/commit/f2ccf80136a01ca69f766becafb329db6c54c0c8. Perform the transformation "(LV op C1) op C2" ==> "LV op (C1 op C2)" where op is an associative binary op, LV is a loop variant, and C1 and C2 are loop invariants, and hoist (C1 op C2) into the preheader. For now this fold is restricted to ADDs.
Author
Parents
Loading