[llvm] [X86] Support APX CMOV/CFCMOV instructions (PR #82592)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 21:53:24 PST 2024
================
@@ -3147,8 +3148,9 @@ X86::CondCode X86::getCondFromSETCC(const MachineInstr &MI) {
}
X86::CondCode X86::getCondFromCMov(const MachineInstr &MI) {
- return X86::isCMOVCC(MI.getOpcode()) ? X86::getCondFromMI(MI)
- : X86::COND_INVALID;
+ return X86::isCMOVCC(MI.getOpcode()) || X86::isCFCMOVCC(MI.getOpcode())
----------------
KanRobert wrote:
CFCMOV should not be added here b/c CMOV optimization is not always applicable to CFCMOV.
https://github.com/llvm/llvm-project/pull/82592
More information about the llvm-commits
mailing list