[PATCH] D119111: [X86] Invert a vector select IR canonicalization with a binop identity constant

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 7 01:43:41 PST 2022


pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:48950
+      case ISD::FMUL: // X * 1.0 --> X
+      case ISD::FDIV: // X * 1.0 --> X
+        return C->isExactlyValue(1.0);
----------------
LuoYuanke wrote:
> pengfei wrote:
> > `/`
> Sorry, I don't understand this comment.
`X / 1.0 --> X`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119111/new/

https://reviews.llvm.org/D119111



More information about the llvm-commits mailing list