Skip to content

Commit 045a7f4

Browse files
[TMP][CVP] Disable some optimizations
Signed-off-by: Vladimir Radosavljevic <[email protected]>
1 parent e558794 commit 045a7f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ static bool narrowSDivOrSRem(BinaryOperator *Instr, const ConstantRange &LCR,
752752
assert(Instr->getOpcode() == Instruction::SDiv ||
753753
Instr->getOpcode() == Instruction::SRem);
754754

755+
return false;
756+
755757
// Find the smallest power of two bitwidth that's sufficient to hold Instr's
756758
// operands.
757759
unsigned OrigWidth = Instr->getType()->getScalarSizeInBits();
@@ -885,6 +887,7 @@ static bool narrowUDivOrURem(BinaryOperator *Instr, const ConstantRange &XCR,
885887
assert(Instr->getOpcode() == Instruction::UDiv ||
886888
Instr->getOpcode() == Instruction::URem);
887889

890+
return false;
888891
// Find the smallest power of two bitwidth that's sufficient to hold Instr's
889892
// operands.
890893

0 commit comments

Comments
 (0)