This is an archive of the discontinued LLVM Phabricator instance.

[X86] remove unneeded variables
ClosedPublic

Authored by AsafBadouh on Apr 10 2016, 6:22 AM.

Details

Summary

no functional change.
ExtraLoad and WrapperKind are been used only if (OpFlags == X86II::MO_GOTPCREL).

The original code had a bug:

Callee = DAG.getNode(X86ISD::WrapperRIP, dl, 
                             getPointerTy(DAG.getDataLayout()), Callee);

where it should be:

Callee = DAG.getNode( WrapperKind, dl,
                             getPointerTy(DAG.getDataLayout()), Callee);

anyway, WrapperKind removed.

Diff Detail

Repository
rL LLVM

Event Timeline

AsafBadouh updated this revision to Diff 53175.Apr 10 2016, 6:22 AM
AsafBadouh retitled this revision from to [X86] remove unneeded variables.
AsafBadouh updated this object.
AsafBadouh added reviewers: aaboud, DavidKreitzer.
AsafBadouh set the repository for this revision to rL LLVM.
AsafBadouh added a subscriber: llvm-commits.
DavidKreitzer accepted this revision.Apr 10 2016, 9:35 AM
DavidKreitzer edited edge metadata.

LGTM, Asaf, thanks!

This revision is now accepted and ready to land.Apr 10 2016, 9:35 AM
AsafBadouh edited edge metadata.Apr 11 2016, 4:04 AM
AsafBadouh added a subscriber: rafael.
AsafBadouh removed a subscriber: rafael.

Hey Rafael,
can you please review this minor change?
Thanks,
Asaf

This revision was automatically updated to reflect the committed changes.