mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
[X86] Remove unnecessary check for integer VT from combineShiftRightArithmetic.
I doubt there's any way to create a ashr for an FP type. llvm-svn: 321057
This commit is contained in:
parent
14f0f17b4b
commit
574e767a20
@ -32551,7 +32551,7 @@ static SDValue combineShiftRightArithmetic(SDNode *N, SelectionDAG &DAG) {
|
||||
// 1. MOVs can write to a register that differs from source
|
||||
// 2. MOVs accept memory operands
|
||||
|
||||
if (!VT.isInteger() || VT.isVector() || N1.getOpcode() != ISD::Constant ||
|
||||
if (VT.isVector() || N1.getOpcode() != ISD::Constant ||
|
||||
N0.getOpcode() != ISD::SHL || !N0.hasOneUse() ||
|
||||
N0.getOperand(1).getOpcode() != ISD::Constant)
|
||||
return SDValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user