Skip to content
Unverified Commit 9cae598f authored by Chang-Sun Lin, Jr's avatar Chang-Sun Lin, Jr Committed by Roman Lebedev
Browse files

[InstCombine] Avoid folding GEPs across loop boundaries

Folding a GEP from outside to inside a loop will materialize an add where there wasn't an equivalent operation before. Check the containing loops before making this fold.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D107935
parent 0f090560
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment