Skip to content

Commit

Permalink
[PowerPC] Fix a typo of the condition of checking the fusion candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
QingShan Zhang committed Mar 17, 2020
1 parent 0095200 commit b83490b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/PowerPC/PPCMacroFusion.cpp
Expand Up @@ -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
Expand Down

0 comments on commit b83490b

Please sign in to comment.