GBE: fix a bug in legalize pass.
authorZhigang Gong <zhigang.gong@intel.com>
Wed, 15 Oct 2014 05:18:12 +0000 (13:18 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 15 Oct 2014 06:22:07 +0000 (14:22 +0800)
commit3af3fb582597983511fd2568e8dd316a6e04fb7d
tree3f79b4133dcd973c186d350a8afc52877ca6f736
parent2e798926251ed1c7df7f24854be8a2ae126ef426
GBE: fix a bug in legalize pass.

The Shr/Shl llvm instructions require to have identical type for
the two operands, so we can't set the shift count to i32 always.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Tested-by: Zhu, BingbingX <bingbingx.zhu@intel.com>
backend/src/llvm/llvm_legalize.cpp