diff options
author | Chang-Sun Lin, Jr <chang-sun.lin.jr@intel.com> | 2021-08-19 20:01:34 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-19 20:03:44 +0300 |
commit | 9cae598f8b647bccab357c4457a67ec0ed424611 (patch) | |
tree | 1b3e145c0cb93d9ced4bf9c9c2bea0a85953ad00 /llvm/lib/Support/CommandLine.cpp | |
parent | 0f0905605e52887eb05a08df4e3c89c617efaa70 (diff) | |
download | llvm-9cae598f8b647bccab357c4457a67ec0ed424611.zip llvm-9cae598f8b647bccab357c4457a67ec0ed424611.tar.gz llvm-9cae598f8b647bccab357c4457a67ec0ed424611.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions