OSDN Git Service

GlobalISel: Ignore callsite attributes when picking intrinsic type
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 17 Jun 2019 17:01:35 +0000 (17:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 17 Jun 2019 17:01:35 +0000 (17:01 +0000)
commitbb2597ae2fdf411ddc394824416aa3323c14d17d
tree7796a43986f90f6c8c50526d8fb8d0a7fc5924ad
parent6f81a49f5c4489724aa1115b69c043fa94436ffd
GlobalISel: Ignore callsite attributes when picking intrinsic type

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363580 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AMDGPU/GlobalISel/irtranslator-readnone-intrinsic-callsite.ll [new file with mode: 0644]