[all-commits] [llvm/llvm-project] af2d74: [InstCombine] Treat `lshr nneg` as `ashr` in `getB...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Fri Dec 15 00:32:32 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af2d740d2d9f3ff7ce9c038c26134c921f0662ae
https://github.com/llvm/llvm-project/commit/af2d740d2d9f3ff7ce9c038c26134c921f0662ae
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2023-12-15 (Fri, 15 Dec 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/xor.ll
Log Message:
-----------
[InstCombine] Treat `lshr nneg` as `ashr` in `getBinOpsForFactorization` (#75521)
This patch reinterprets `lshr nneg C, X` as `ashr nneg C, X` to allow
more factorization opportunities.
Fixes #70582.
More information about the All-commits
mailing list