[llvm] 9d07d91 - [PowerPC] fix a typo in commit 3f85134d710c
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 22:56:25 PDT 2020
Author: Chen Zheng
Date: 2020-03-24T01:56:15-04:00
New Revision: 9d07d91fb6c8c3c79e6b0c4f6e92dd16a77ff7fb
URL: https://github.com/llvm/llvm-project/commit/9d07d91fb6c8c3c79e6b0c4f6e92dd16a77ff7fb
DIFF: https://github.com/llvm/llvm-project/commit/9d07d91fb6c8c3c79e6b0c4f6e92dd16a77ff7fb.diff
LOG: [PowerPC] fix a typo in commit 3f85134d710c
Implement target hook isProfitableToHoist - typo fix.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index e9470907c289..9aee6cb6655a 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -15398,7 +15398,7 @@ bool PPCTargetLowering::isProfitableToHoist(Instruction *I) const {
assert(User && "A single use instruction with no uses.");
if (User->getOpcode() != Instruction::FSub &&
- User->getOpcode() == Instruction::FAdd)
+ User->getOpcode() != Instruction::FAdd)
return true;
const TargetOptions &Options = getTargetMachine().Options;
More information about the llvm-commits
mailing list