[all-commits] [llvm/llvm-project] 86f039: [InstCombine] Fold expression using basic properti...
c8ef via All-commits
all-commits at lists.llvm.org
Sun Sep 15 03:25:22 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86f0399c1fdec80c34e22821607696a485857421
https://github.com/llvm/llvm-project/commit/86f0399c1fdec80c34e22821607696a485857421
Author: c8ef <c8ef at outlook.com>
Date: 2024-09-15 (Sun, 15 Sep 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
A llvm/test/Transforms/InstCombine/fp-floor-ceil.ll
Log Message:
-----------
[InstCombine] Fold expression using basic properties of floor and ceiling function (#107107)
alive2: ~~https://alive2.llvm.org/ce/z/Ag3Ki7~~
https://alive2.llvm.org/ce/z/ywP5t2
related: #76438
This patch adds the following foldings: `floor(x) <= x --> true` and `x
<= ceil(x) --> true`. We leverage the properties of these math functions
and ensure there is no floating point input of `nan`.
---------
Co-authored-by: Yingwei Zheng <dtcxzyw at qq.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list