mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-05 19:29:01 +00:00
[IndVars] Use auto
; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f0d29aad5c
commit
e3284eab8a
@ -962,14 +962,12 @@ Instruction *WidenIV::CloneIVUser(NarrowIVDefUse DU) {
|
||||
Value *RHS = (DU.NarrowUse->getOperand(1) == DU.NarrowDef) ? DU.WideDef :
|
||||
getExtend(DU.NarrowUse->getOperand(1), WideType, IsSigned, DU.NarrowUse);
|
||||
|
||||
BinaryOperator *NarrowBO = cast<BinaryOperator>(DU.NarrowUse);
|
||||
BinaryOperator *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(),
|
||||
LHS, RHS,
|
||||
NarrowBO->getName());
|
||||
auto *NarrowBO = cast<BinaryOperator>(DU.NarrowUse);
|
||||
auto *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS, RHS,
|
||||
NarrowBO->getName());
|
||||
IRBuilder<> Builder(DU.NarrowUse);
|
||||
Builder.Insert(WideBO);
|
||||
if (const OverflowingBinaryOperator *OBO =
|
||||
dyn_cast<OverflowingBinaryOperator>(NarrowBO)) {
|
||||
if (const auto *OBO = dyn_cast<OverflowingBinaryOperator>(NarrowBO)) {
|
||||
if (OBO->hasNoUnsignedWrap()) WideBO->setHasNoUnsignedWrap();
|
||||
if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user