[PowerPC] fix up in sign-/zero-extension elimination
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Mon, 16 Oct 2017 12:11:15 +0000 (12:11 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Mon, 16 Oct 2017 12:11:15 +0000 (12:11 +0000)
commita7eb78b47f4583ab0699827e7eb1d589892b5d30
treec2769490767729a0ee755f6815d25b27515154c4
parentbfc9061593307bf6b09106216445eacb1c5215d1
[PowerPC] fix up in sign-/zero-extension elimination

This patch fixes a potential problem in my previous commit (https://reviews.llvm.org/rL315888) by adding a null check.

llvm-svn: 315900
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp