[SystemZ] Move sign_extend optimization to PerformDAGCombine
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 7 Mar 2014 11:34:35 +0000 (11:34 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 7 Mar 2014 11:34:35 +0000 (11:34 +0000)
commit122a970111b8ec66ae330f2c218ae951dddaf75b
treeb07424d2a9d6989f5f5560afad657cce0a320c34
parentfa9e4b52f4f73c10a060d725d181e48055ce5f45
[SystemZ] Move sign_extend optimization to PerformDAGCombine

The target was marking SIGN_EXTEND as Custom because it wanted to optimize
certain sign-extended shifts.  In all other respects the extension is Legal,
so it'd be better to do the optimization in PerformDAGCombine instead.

No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h