[all-commits] [llvm/llvm-project] b543d2: [InstCombine] Add one use limitation for (X * C2)...
chenglin.bi via All-commits
all-commits at lists.llvm.org
Thu Apr 21 09:34:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b543d28df7b067dcda833c717a59faa28c1151a1
https://github.com/llvm/llvm-project/commit/b543d28df7b067dcda833c717a59faa28c1151a1
Author: chenglin.bi <chenglin.bi at cixcomputing.com>
Date: 2022-04-22 (Fri, 22 Apr 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
M llvm/test/Transforms/InstCombine/apint-shift.ll
Log Message:
-----------
[InstCombine] Add one use limitation for (X * C2) << C1 --> X * (C2 << C1)
Follow up D123453, add one-use limitation for
(X * C2) << C1 --> X * (C2 << C1)
to make consistent with
lshr (mul nuw x, MulC), ShAmtC -> mul nuw x, (MulC >> ShAmtC)
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D124183
More information about the All-commits
mailing list