llvm.org GIT mirror llvm / fb9e306
[FastISel] Pass the fneg input operand to hasTrivialKill in FastISel::selectFNeg. We're trying to calculate the kill flag for OpReg which is the input so we need to pass the input here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360097 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 1 year, 4 months ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
17181718 unsigned OpReg = getRegForValue(X);
17191719 if (!OpReg)
17201720 return false;
1721 bool OpRegIsKill = hasTrivialKill(I);
1721 bool OpRegIsKill = hasTrivialKill(X);
17221722
17231723 // If the target has ISD::FNEG, use it.
17241724 EVT VT = TLI.getValueType(DL, I->getType());
88 ; CHECK-NEXT: %[[REG1:.*]]:gr64 = COPY killed %[[REG0]]
99 ; CHECK-NEXT: %[[REG3:.*]]:gr64 = COPY killed %[[REG2]]
1010 ; CHECK-NEXT: %[[REG10:.*]]:fr64 = MOVSDrm %[[REG1]], 1, $noreg, 0, $noreg :: (load 8 from %ir.x)
11 ; CHECK-NEXT: %[[REG6:.*]]:gr64 = MOVSDto64rr %[[REG10]]
11 ; CHECK-NEXT: %[[REG6:.*]]:gr64 = MOVSDto64rr killed %[[REG10]]
1212 ; CHECK-NEXT: %[[REG7:.*]]:gr64 = MOV64ri -9223372036854775808
1313 ; CHECK-NEXT: %[[REG8:.*]]:gr64 = XOR64rr killed %[[REG6]], %[[REG7]], implicit-def $eflags
1414 ; CHECK-NEXT: %[[REG9:.*]]:fr64 = MOV64toSDrr killed %[[REG8]]