Skip to content

Commit

Permalink
[X86][mem-fold][NFC] Simplify code by transform A != 0 - > A
Browse files Browse the repository at this point in the history
  • Loading branch information
KanRobert committed Apr 9, 2023
1 parent 75196f8 commit 99adc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/X86FoldTablesEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class IsMatch {
const Record *MemRec = MemInst->TheDef;

// EVEX_B means different things for memory and register forms.
if (RegRI.HasEVEX_B != 0 || MemRI.HasEVEX_B != 0)
if (RegRI.HasEVEX_B || MemRI.HasEVEX_B)
return false;

if (!mayFoldFromLeftToRight(RegRI.Form, MemRI.Form))
Expand Down

0 comments on commit 99adc0a

Please sign in to comment.