This is an archive of the discontinued LLVM Phabricator instance.

[X86] Fix killed flag handling in X86FixupLea pass
ClosedPublic

Authored by skatkov on Jan 25 2018, 12:52 AM.

Details

Summary

When pass creates a MOV instruction for
lea (%base,%index,1), %dst => mov %base,%dst; add %index,%dst
modification it should clean the killed flag for base if base is equal to index.

Otherwise verifier complains about usage of killed register in add instruction.

Diff Detail

Event Timeline

skatkov created this revision.Jan 25 2018, 12:52 AM
lsaba accepted this revision.Jan 25 2018, 1:11 AM
This revision is now accepted and ready to land.Jan 25 2018, 1:11 AM
This revision was automatically updated to reflect the committed changes.