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)
commitb94972cb827c21374d06c73fa3b5df5e2e2b2216
tree93d17974712c0235c73ca0d7bf1105ffd19e8781
parentadbf14ab859fb0782a5667dd2c5b669a3e2b362f
IPRA: Don't crash on null getCallPreservedMask

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

llvm-svn: 310172
llvm/lib/CodeGen/RegUsageInfoCollector.cpp
llvm/test/CodeGen/AMDGPU/ipra.ll [new file with mode: 0644]