[all-commits] [llvm/llvm-project] 1ac99b: [InstSimplify] Simplify select i1 ConstExpr, i1 tr...
luxufan via All-commits
all-commits at lists.llvm.org
Sat Jun 3 00:09:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1ac99bc452a863713d404724fb1e10f45ba8b454
https://github.com/llvm/llvm-project/commit/1ac99bc452a863713d404724fb1e10f45ba8b454
Author: luxufan <luxufan at iscas.ac.cn>
Date: 2023-06-03 (Sat, 03 Jun 2023)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/test/Transforms/InstSimplify/select-inseltpoison.ll
M llvm/test/Transforms/InstSimplify/select.ll
Log Message:
-----------
[InstSimplify] Simplify select i1 ConstExpr, i1 true, i1 false to ConstExpr
`select i1 non-const, i1 true, i1 false` has been optimized to
`non-const`. There is no reason that we can not optimize `select i1
ConstExpr, i1 true, i1 false` to `ConstExpr`.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D151631
More information about the All-commits
mailing list