HomePhabricator

CodeGenPrep: preserve inbounds attribute when sinking GEPs.

Authored by t.p.northover on Mar 12 2019, 8:22 AM.

Description

CodeGenPrep: preserve inbounds attribute when sinking GEPs.

Targets can potentially emit more efficient code if they know address
computations never overflow. For example ILP32 code on AArch64 (which only has
64-bit address computation) can ignore the possibility of overflow with this
extra information.

llvm-svn: 355926

Details

Committed
t.p.northoverMar 12 2019, 8:22 AM
Parents
rG08dc382465d0: fix break tests after rL355922. NFCI
Branches
Unknown
Tags
Unknown