[PATCH] D85709: [InstSimplify] Implement Instruction simplification for X/sqrt(X) to sqrt(X).

Noel Grandin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 01:46:26 PDT 2020


grandinj added a comment.

Just a drive-by comment : Possibly the more general form of this needs to be optimised too?

The more general form of this is

  X^a * X^b -> X ^ (a+b)
  
  X^a / X^b -> X ^ (a-b)


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

https://reviews.llvm.org/D85709



More information about the llvm-commits mailing list