This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: Set hasSideEffects = 0 on BUNDLE
ClosedPublic

Authored by arsenm on Jul 2 2019, 12:42 PM.

Details

Summary

The BUNDLE itself should not have side effects, and this is a property
of instructions inside the bundle. The hasProperty check already
searches for any member instructions, which was pointless since it was
overridden by this bit.

Allows me to distinguish bundles that have side effects vs. do not in
a future patch. Also fixes an unnecessary scheduling barrier in the
bundle AMDGPU uses to get PC relative addresses.

Diff Detail

Event Timeline

arsenm created this revision.Jul 2 2019, 12:42 PM
hfinkel accepted this revision.Jul 2 2019, 2:13 PM
hfinkel added a subscriber: hfinkel.

If we already search the member instructions, then this seems like the right thing to do. LGTM

This revision is now accepted and ready to land.Jul 2 2019, 2:13 PM
arsenm closed this revision.Jul 2 2019, 5:31 PM

r364984