Skip to content

Commit

Permalink
Revert "[NFC] Run clang-format on llvm/lib/Target/X86/X86InstroInfo.cpp"
Browse files Browse the repository at this point in the history
This reverts commit 8bef547.

Need to revert, update commit message and reapply.
  • Loading branch information
minglotus-6 committed May 11, 2022
1 parent da82338 commit 852f3d9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions llvm/lib/Target/X86/X86InstrInfo.cpp
Expand Up @@ -1049,12 +1049,11 @@ static bool findRedundantFlagInstr(MachineInstr &CmpInstr,
// in the `AND` and `TEST` operation; signed bit is not known for `AND`,
// and is known to be 0 as a result of `TEST64rr`.
//
// FIXME: As opposed to poisoning the SF bit directly, consider peeking into
// the AND instruction and using the static information to guide peephole
// optimization if possible. For example, it's possible to fold a
// conditional move into a copy if the relevant EFLAG bits could be deduced
// from an immediate operand of and operation.
//
// FIXME: As opposed to poisoning the SF bit direclty, consider peeking into
// the AND instruction and using the static information to guide peephole optimization if possible.
// For example, it's possible to fold a conditional move into a copy
// if the relevant EFLAG bits could be deduced from an immediate operand of and operation.
//
NoSignFlag = true;
// ClearsOverflowFlag is true for AND operation (no surprise).
ClearsOverflowFlag = true;
Expand Down

0 comments on commit 852f3d9

Please sign in to comment.