mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Minor bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64c88d741e
commit
29a68fb5b7
@ -4009,7 +4009,8 @@ static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo,
|
||||
|
||||
// Check if it is possible to fold the expression to address mode.
|
||||
if (UseTy &&
|
||||
TLI.isLegalAddressExpression(Instruction::Add, BinOp->getOperand(0),
|
||||
TLI.isLegalAddressExpression(BinOp->getOpcode(),
|
||||
BinOp->getOperand(0),
|
||||
BinOp->getOperand(1), UseTy)) {
|
||||
DestBBs.insert(UserBB);
|
||||
MadeChange = true;
|
||||
|
Loading…
Reference in New Issue
Block a user