summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-05-06 23:09:09 +0000
committerCraig Topper <craig.topper@intel.com>2019-05-06 23:09:09 +0000
commit39f1a97417eb70d5df19e5a11e445806df976437 (patch)
treeedb6f36e7ae80765141df3a28a0ba908f676859b /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent24cfb7a992b08e726a953e7667a2f948a9aabf94 (diff)
downloadbcm5719-llvm-39f1a97417eb70d5df19e5a11e445806df976437.tar.gz
bcm5719-llvm-39f1a97417eb70d5df19e5a11e445806df976437.zip
[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. llvm-svn: 360097
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index fb607bbf739..a6212aa49ea 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1719,7 +1719,7 @@ bool FastISel::selectFNeg(const User *I) {
unsigned OpReg = getRegForValue(X);
if (!OpReg)
return false;
- bool OpRegIsKill = hasTrivialKill(I);
+ bool OpRegIsKill = hasTrivialKill(X);
// If the target has ISD::FNEG, use it.
EVT VT = TLI.getValueType(DL, I->getType());
OpenPOWER on IntegriCloud