mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Add vector shifts to the IR, patch by Eli Friedman.
CodeGen & Clang work coming next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -6368,7 +6368,8 @@ Instruction *InstCombiner::visitAShr(BinaryOperator &I) {
|
||||
return ReplaceInstUsesWith(I, CSI);
|
||||
|
||||
// See if we can turn a signed shr into an unsigned shr.
|
||||
if (MaskedValueIsZero(Op0,
|
||||
if (!isa<VectorType>(I.getType()) &&
|
||||
MaskedValueIsZero(Op0,
|
||||
APInt::getSignBit(I.getType()->getPrimitiveSizeInBits())))
|
||||
return BinaryOperator::CreateLShr(Op0, I.getOperand(1));
|
||||
|
||||
|
Reference in New Issue
Block a user