[llvm] b83490b - [PowerPC] Fix a typo of the condition of checking the fusion candidate
QingShan Zhang via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 03:04:41 PDT 2020
Author: QingShan Zhang
Date: 2020-03-17T10:04:18Z
New Revision: b83490bdb715863722aea0ade847fc3bd810e1b3
URL: https://github.com/llvm/llvm-project/commit/b83490bdb715863722aea0ade847fc3bd810e1b3
DIFF: https://github.com/llvm/llvm-project/commit/b83490bdb715863722aea0ade847fc3bd810e1b3.diff
LOG: [PowerPC] Fix a typo of the condition of checking the fusion candidate
Added:
Modified:
llvm/lib/Target/PowerPC/PPCMacroFusion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCMacroFusion.cpp b/llvm/lib/Target/PowerPC/PPCMacroFusion.cpp
index bde3f5918a23..815dfd1402f4 100644
--- a/llvm/lib/Target/PowerPC/PPCMacroFusion.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMacroFusion.cpp
@@ -113,7 +113,7 @@ static bool checkOpConstraints(FusionFeature::FusionKind Kd,
if (!SI.isImm())
return true;
int64_t Imm = SI.getImm();
- if (((Imm & 0xFFF0) != 0) || ((Imm & 0xFFF0) != 0xFFF0))
+ if (((Imm & 0xFFF0) != 0) && ((Imm & 0xFFF0) != 0xFFF0))
return false;
// If si = 1111111111110000 and the msb of the d/ds field of the load equals
More information about the llvm-commits
mailing list