This is an archive of the discontinued LLVM Phabricator instance.

[CGP] Fix the detection of trivial case for addressing mode
ClosedPublic

Authored by skatkov on Oct 10 2017, 10:24 PM.

Details

Summary

The address can be presented as a bitcast of baseReg.
In this case it is still trivial but OriginalValue != baseReg.

Diff Detail

Event Timeline

skatkov created this revision.Oct 10 2017, 10:24 PM
hfinkel accepted this revision.Oct 30 2017, 2:47 PM
hfinkel added a subscriber: hfinkel.

This logic certainly looks cleaner.

lib/CodeGen/CodeGenPrepare.cpp
2730

is alone field -> is the only populated field

This revision is now accepted and ready to land.Oct 30 2017, 2:47 PM