[all-commits] [llvm/llvm-project] 120cbb: [InstCombine] Fold `fptrunc(x) ord/uno [ C | fptru...
Kunqiu Chen via All-commits
all-commits at lists.llvm.org
Wed Apr 15 02:07:29 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 120cbbd88bf6b6c723176684a12c64393abe7e95
https://github.com/llvm/llvm-project/commit/120cbbd88bf6b6c723176684a12c64393abe7e95
Author: Kunqiu Chen <camsyn at foxmail.com>
Date: 2026-04-15 (Wed, 15 Apr 2026)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/fold-fcmp-trunc.ll
M llvm/test/Transforms/InstCombine/known-never-nan.ll
Log Message:
-----------
[InstCombine] Fold `fptrunc(x) ord/uno [ C | fptrunc(y) ]` to `x ord/uno [ C | y ]` (#185844)
Recognize TWO new patterns and fold them as follows:
```
fptrunc(x) ord/uno C --> x ord/uno 0
fptrunc(x) ord/uno fptrunc(y) --> x ord/uno y
```
Fixes #185698
Alive2: https://alive2.llvm.org/ce/z/YvXnBJ
IR diff: https://github.com/dtcxzyw/llvm-opt-benchmark/pull/3551
CompTime impact: https://github.com/dtcxzyw/llvm-opt-benchmark/pull/3552
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