In preparation for allowing allocas to have non-0 addrspace. llvm-svn: 299876
Atomic comparison instructions use the sub-word load instruction on Power8 and up but the value is not sign extended prior to the signed word compare instruction. This patch adds that sign extension. llvm-svn: 282182