[all-commits] [llvm/llvm-project] aa847c: [InstCombine] handle trunc to i1 in foldSelectICmp...
Andreas Jonson via All-commits
all-commits at lists.llvm.org
Wed Feb 19 09:30:10 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa847ced0721bcfc411b8827e54f1681edb9cc8c
https://github.com/llvm/llvm-project/commit/aa847ced0721bcfc411b8827e54f1681edb9cc8c
Author: Andreas Jonson <andjo403 at hotmail.com>
Date: 2025-02-19 (Wed, 19 Feb 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/select-with-bitwise-ops.ll
Log Message:
-----------
[InstCombine] handle trunc to i1 in foldSelectICmpAndBinOp (#127390)
for `trunc nuw` saves a instruction and otherwise only other
instructions without the select, same behavior as for bit test before.
proof: https://alive2.llvm.org/ce/z/a6QmyV
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