This is an archive of the discontinued LLVM Phabricator instance.

X86: Simplify X86ISD::Wrapper operand checks.
ClosedPublic

Authored by pcc on Nov 15 2016, 6:53 PM.

Details

Summary

We only ever create TargetConstantPool, TargetJumpTable, TargetExternalSymbol,
TargetGlobalAddress, TargetGlobalTLSAddress, MCSymbol and TargetBlockAddress
nodes as operands of X86ISD::Wrapper nodes, so we can remove one check and
invert the other.

Also update the documentation comment for X86ISD::Wrapper.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 78128.Nov 15 2016, 6:53 PM
pcc retitled this revision from to X86: Simplify X86ISD::Wrapper operand checks..
pcc updated this object.
pcc added a reviewer: craig.topper.
pcc added a subscriber: llvm-commits.
craig.topper accepted this revision.Nov 15 2016, 9:50 PM
craig.topper edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 15 2016, 9:50 PM
This revision was automatically updated to reflect the committed changes.