This is an archive of the discontinued LLVM Phabricator instance.

[BasicAA] Use GEP as context for computeKnownBits in aliasGEP.
ClosedPublic

Authored by fhahn on Dec 10 2019, 6:18 AM.

Details

Summary

In order to use assumptions, computeKnownBits needs a context
instruction. We can use the GEP, if it is an instruction. We already
pass the assumption cache, but it cannot be used without a context
instruction.

Diff Detail

Event Timeline

fhahn created this revision.Dec 10 2019, 6:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2019, 6:18 AM

Build result: pass - 60675 tests passed, 0 failed and 726 were skipped.

Log files: console-log.txt, CMakeCache.txt

asbirlea accepted this revision.Dec 10 2019, 10:01 AM

lgtm, thank you!

This revision is now accepted and ready to land.Dec 10 2019, 10:01 AM
This revision was automatically updated to reflect the committed changes.