HomePhabricator

[DAGCombine]: Fold X/Sqrt(X) to Sqrt(X)

Authored by venkataramanan.kumar.llvm on Aug 24 2020, 3:12 PM.

Description

[DAGCombine]: Fold X/Sqrt(X) to Sqrt(X)

With FMF ( "nsz" and " reassoc") fold X/Sqrt(X) to Sqrt(X).

This is done after targets have the chance to produce a
reciprocal sqrt estimate sequence because that expansion
is probably more efficient than an expansion of a
non-reciprocal sqrt. That is also why we deferred doing
this transform in IR (D85709).

Differential Revision: https://reviews.llvm.org/D86403

Details

Committed
spatelAug 24 2020, 3:16 PM
Differential Revision
D86403: [DAGCombine]: Fold X/Sqrt(X) to Sqrt(X).
Parents
rGa74dc598fb6b: [x86][AArch64] adjust fast-math-flags in tests; NFC
Branches
Unknown
Tags
Unknown