[PATCH] D51861: [LSR] Combine unfolded offset into invariant register

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 10:27:09 PDT 2018


qcolombet added a comment.

> Bug fix: ScalarEvolution::getAddExpr() may modify the vector of SCEVs it is given as argument, causing 2nd formula to be created with only part of the SCEVs in Ops.
>  This patch fixes this by using a temporary copy of Ops for the 1st formula.

Is this covered by an existing test case?
If not, could you add one?


https://reviews.llvm.org/D51861





More information about the llvm-commits mailing list