commit | 7ab343c90a3c83f8adb59f47f2015961e09c75eb | [log] [tgz] |
---|---|---|
author | Jun Ma <JunMa@linux.alibaba.com> | Thu Apr 08 13:09:24 2021 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 16 12:55:08 2021 -0700 |
tree | 69d65a2a3eee8e3f9a0a522b11b49fb4ce4dc028 | |
parent | 1c08e4864e2ffe0e89a2e170b11d86a11e94b851 [diff] |
[DAGCombiner] Fold step_vector with add/mul/shl This patch implements some DAG combines for STEP_VECTOR: add step_vector(C1), step_vector(C2) -> step_vector(C1+C2) add (add X step_vector(C1)), step_vector(C2) -> add X step_vector(C1+C2) mul step_vector(C1), C2 -> step_vector(C1*C2) shl step_vector(C1), C2 -> step_vector(C1<<C2) TestPlan: check-llvm Differential Revision: https://reviews.llvm.org/D100088 GitOrigin-RevId: 7e1422c1e43023e4cd5fbb3305f8dbf2d626e87e