This is an archive of the discontinued LLVM Phabricator instance.

[InstrInfo] Refactor foldOperandImpl to thread through InsertPt. NFC
ClosedPublic

Authored by loladiro on Jun 1 2015, 4:58 PM.

Details

Summary

This was a longstanding FIXME and is a necessary precursor to cases
where foldOperandImpl may have to create more than one instruction
(e.g. to constrain a register class). This is the split out NFC changes from
D6262.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro updated this revision to Diff 26939.Jun 1 2015, 4:58 PM
loladiro retitled this revision from to [InstrInfo] Refactor foldOperandImpl to thread through InsertPt. NFC.
loladiro updated this object.
loladiro edited the test plan for this revision. (Show Details)
loladiro added reviewers: pete, ributzka, uweigand.
loladiro set the repository for this revision to rL LLVM.
loladiro added a subscriber: Unknown Object (MLST).

Bump. Does this look ok?

mcrosier accepted this revision.Jun 8 2015, 6:39 AM
mcrosier added a reviewer: mcrosier.
mcrosier added a subscriber: mcrosier.

LGTM with one small nit.

lib/Target/X86/X86InstrInfo.cpp
4700 ↗(On Diff #26939)

Mark as static?

This revision is now accepted and ready to land.Jun 8 2015, 6:39 AM
This revision was automatically updated to reflect the committed changes.