[all-commits] [llvm/llvm-project] 2b5824: InstCombine: Fold is.fpclass(x, fcInf) to fabs+fcmp
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Aug 29 14:58:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2b582440c16c72b6b021ea5c212ceda3bdfb2b9b
https://github.com/llvm/llvm-project/commit/2b582440c16c72b6b021ea5c212ceda3bdfb2b9b
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2023-08-29 (Tue, 29 Aug 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/and-fcmp.ll
M llvm/test/Transforms/InstCombine/combine-is.fpclass-and-fcmp.ll
M llvm/test/Transforms/InstCombine/create-class-from-logic-fcmp.ll
M llvm/test/Transforms/InstCombine/is_fpclass.ll
Log Message:
-----------
InstCombine: Fold is.fpclass(x, fcInf) to fabs+fcmp
This is a better canonical form. fcmp and fabs are more widely
understood and fabs can fold for free into some sources.
Addresses todo from D146170
https://reviews.llvm.org/D159084
More information about the All-commits
mailing list