This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Ignore callsite attributes when picking intrinsic type
ClosedPublic

Authored by arsenm on Jun 17 2019, 5:50 AM.

Details

Summary

A target intrinsic may be defined as possibly reading memory, but the
call site may have additional knowledge that it doesn't read
memory. The intrinsic lowering will expect the pessimistic assumption
of the intrinsic definition, so the chain should still be used.

I fixed the same bug in SelectionDAG in r287593.

Diff Detail

Event Timeline

arsenm created this revision.Jun 17 2019, 5:50 AM
This revision is now accepted and ready to land.Jun 17 2019, 9:14 AM
arsenm closed this revision.Jun 17 2019, 9:58 AM

r363580