[InstCombine] Don't combine smul of i1 type constant one
authorluxufan <luxufan@iscas.ac.cn>
Tue, 17 Jan 2023 13:21:11 +0000 (21:21 +0800)
committerluxufan <luxufan@iscas.ac.cn>
Tue, 17 Jan 2023 14:04:48 +0000 (22:04 +0800)
commit0ad5909958157c72db861b2b4b46a504c1a76ca4
tree33c96b79dfa2b3087e2da08408f2fde66feaf9f7
parent774275ddb51c99a8170b41734a5113de68233b56
[InstCombine] Don't combine smul of i1 type constant one

Fixes: https://github.com/llvm/llvm-project/issues/59876

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D141214
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/smulo.ll