R600/SI: Fix assertion from copying a TargetGlobalAddress
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 8 Sep 2014 15:07:33 +0000 (15:07 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 8 Sep 2014 15:07:33 +0000 (15:07 +0000)
commit13ea374e79e800bbcf01a23c52027fe82185ac1a
tree0b5ea90afe17c0a99564f87b09e145267951575f
parentef4bb30475eea5b486153672a250e81c0ea6415f
R600/SI: Fix assertion from copying a TargetGlobalAddress

Assert in scheduler from an inserted copy_to_regclass from
a constant.

This only seems to break sometimes when a constant initializer
address is forced into VGPRs in a non-entry block. No test
since the only case I've managed to hit only happens with a future
patch, and that case will also not be a problem once scalar instructions
are used in non-entry blocks.

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