R600: Fix scheduler crash caused by invalid MachinePointerInfo
authorTom Stellard <thomas.stellard@amd.com>
Tue, 19 Feb 2013 15:22:44 +0000 (15:22 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 19 Feb 2013 15:22:44 +0000 (15:22 +0000)
commit23339b68e224cedac1e7025ba8bca3e3eb127fab
tree7815cc8e67eeaced0becda317b3474cad7e87d66
parent403554c65847d3f42c5a01661ce494fb877f8ced
R600: Fix scheduler crash caused by invalid MachinePointerInfo

Kernel function arguments are lowered to loads from the PARAM_I address
space.  When creating these load instructions, we were initializing
their MachinePointerInfo with an Arguement object that was not attached
to any function.  This was causing the MachineScheduler to crash when
it tried to access the parent of the Arguement.

This has been fixed by initializing the MachinePointerInfo with a
UndefValue instead.

NOTE: This is a candidate for the Mesa stable branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175517 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp