[PATCH] D106607: [x86] improve CMOV codegen by hoisting add
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 22:54:35 PDT 2021
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:49872
+ SDLoc DL(N);
+ SDValue FalseOp = Cmov.getOperand(0);
+ SDValue TrueOp = Cmov.getOperand(1);
----------------
Surprising to see the first operand is false operand. I saw we are taking it as true in same cases
```
def : Pat<(f128 (X86cmov VR128:$t, VR128:$f, timm:$cond, EFLAGS)),
(CMOV_VR128 VR128:$t, VR128:$f, timm:$cond)>;
```
Which one is right?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106607/new/
https://reviews.llvm.org/D106607
More information about the llvm-commits
mailing list