OSDN Git Service

IPRA: Don't crash on null getCallPreservedMask
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 5 Aug 2017 07:50:18 +0000 (07:50 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 5 Aug 2017 07:50:18 +0000 (07:50 +0000)
commite1f2d6cc65ce085071bf5c323082e342bdfafffa
treea07288156074ee10a83b545cde393b135516592e
parent3ae1e28f6715fd524bc5a5671e435708507fc277
IPRA: Don't crash on null getCallPreservedMask

Kernels aren't callable, so they don't have a call preserved mask.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310172 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegUsageInfoCollector.cpp
test/CodeGen/AMDGPU/ipra.ll [new file with mode: 0644]