[PATCH] D57434: Optimize pow(X, 0.75) to sqrt(X) * sqrt(sqrt(X))
Whitney via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 17:15:27 PST 2019
Whitney added inline comments.
================
Comment at: llvm/test/CodeGen/X86/pow.75.ll:2
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-- -debug 2>&1 | FileCheck %s
+
----------------
arsenm wrote:
> lebedev.ri wrote:
> > Why `-debug`, instead of checking the asm?
> These will all break without REQUIRES: asserts
What I am trying to check is that pow(x, 0.75) gets transformed into sqrt(x)*sqrt(sqrt(x)). I wanted to check at an earlier stage rather than asm, because asm requests the reader to known signifiant details about the expansions to know that this is the right thing or not, which makes for a very confusing and hard to read test case.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57434/new/
https://reviews.llvm.org/D57434
More information about the llvm-commits
mailing list