[PATCH] D154677: [InstCombine] Add tests for folding `fmul`/`fdiv` by Pow2 to `add`/`sub` of exp; NFC
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 7 03:57:52 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/fmul-and-fdiv-by-int-pow2.ll:14
+ %conv = uitofp i64 %shl to double
+ %mul = fmul double 9.000000e+00, %conv
+ ret double %mul
----------------
Add some tests that show flag preservation on fmul/fdiv
================
Comment at: llvm/test/Transforms/InstCombine/fmul-and-fdiv-by-int-pow2.ll:182
+;
+ %shl = shl nuw i16 1, %cnt
+ %conv = uitofp i16 %shl to half
----------------
Are the nuws relevant?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154677/new/
https://reviews.llvm.org/D154677
More information about the llvm-commits
mailing list