diff options
author | chenglin.bi <chenglin.bi@linaro.org> | 2023-01-11 01:28:43 +0800 |
---|---|---|
committer | chenglin.bi <chenglin.bi@linaro.org> | 2023-01-11 01:29:09 +0800 |
commit | be7d0d6db5094f2709c028ce6b62936f51db8bc9 (patch) | |
tree | a777769ecbcf6943753ef2f6087d24a19c3217f8 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | b84ab1f7c9b87cb0a0bea26dc4299c4fd19df548 (diff) | |
download | llvm-be7d0d6db5094f2709c028ce6b62936f51db8bc9.zip llvm-be7d0d6db5094f2709c028ce6b62936f51db8bc9.tar.gz llvm-be7d0d6db5094f2709c028ce6b62936f51db8bc9.tar.bz2 |
[DAGCombiner] Fix issue with rot chain pattern
faa35fc87370 fix the case of negative input shift. But when `c1`, `c2` is not the same side, it will also cause negative shift amount.
And that negative shift amount can't normalize by urem. So add one more bit size to normalize the last shift amount.
Fix: https://github.com/llvm/llvm-project/issues/59898
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D141363
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions