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

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 7 01:47:53 PST 2022


LuoYuanke 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);
----------------
pengfei wrote:
> LuoYuanke wrote:
> > pengfei wrote:
> > > `/`
> > Sorry, I don't understand this comment.
> `X / 1.0 --> X`
Got it. :)


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