[all-commits] [llvm/llvm-project] 872932: [InstCombine] Generalize `icmp (shl nuw C2, Y), C ...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Wed Sep 18 04:11:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 872932b7a9539b0f0b62805f339bef62c94fd52d
https://github.com/llvm/llvm-project/commit/872932b7a9539b0f0b62805f339bef62c94fd52d
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-09-18 (Wed, 18 Sep 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/icmp-shl-nuw.ll
Log Message:
-----------
[InstCombine] Generalize `icmp (shl nuw C2, Y), C -> icmp Y, C3` (#104696)
The motivation of this patch is to fold more generalized patterns like
`icmp ult (shl nuw 16, X), 64 -> icmp ult X, 2`.
Alive2: https://alive2.llvm.org/ce/z/gyqjQH
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