llvm-project
a18dd290 - [ConstantFolding] Set signed/implicitTrunc when handling GEP offsets

Commit
1 year ago
[ConstantFolding] Set signed/implicitTrunc when handling GEP offsets GEP offsets have sext_or_trunc semantics. We were already doing this for the outer-most GEP, but not for the inner ones. I believe one of the sanitizer buildbot failures was due to this, but I did not manage to reproduce the issue or come up with a test case. Usually the problematic case will already be folded away due to index type canonicalization.
Author
Committer
Parents
Loading