commit | cae8430e06d8d0304150636630164ea74e43e0b6 | [log] [tgz] |
---|---|---|
author | Stelios Ioannou <stelios.ioannou@arm.com> | Thu Apr 15 16:44:42 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 16 12:58:33 2021 -0700 |
tree | 2ab65753718b0fb7c433a2f0db4e7158d766a1fd | |
parent | 479ebfc8dc83cd922adffe690b36e45ef7aff1b3 [diff] |
[LSR] Fix for pre-indexed generated constant offset This patch changed the isLegalUse check to ensure that LSRInstance::GenerateConstantOffsetsImpl generates an offset that results in a legal addressing mode and formula. The check is changed to look similar to the assert check used for illegal formulas. Differential Revision: https://reviews.llvm.org/D100383 Change-Id: Iffb9e32d59df96b8f072c00f6c339108159a009a GitOrigin-RevId: bf147c465352ed69f6fdaace26e9566bc442ade2