HomePhabricator

[InstSimplify] Don't lose inbounds when simplifying a GEP

Authored by arichardson on Sep 23 2021, 1:02 AM.

Description

[InstSimplify] Don't lose inbounds when simplifying a GEP

I noticed this while working on a (ptrtoint (gep null, x)) -> x fold.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D110168

Details

Committed
arichardsonSep 23 2021, 1:25 AM
Reviewer
nikic
Differential Revision
D110168: [InstSimplify] Don't lose inbounds when simplifying a GEP
Parents
rG8b87c3d57367: [libc] Add optimized memset for AArch64
Branches
Unknown
Tags
Unknown