llvm-project
90668d24 - [CVP][LVI] Add support for InsertElementInst in LVI (#99368)

Commit
1 year ago
[CVP][LVI] Add support for InsertElementInst in LVI (#99368) Currently, the LVI analysis pass doesn't support InsertElementInst vector instruction. Due to this, some optimization opportunities are missed. For example, in the below example, ICMP instruction can be folded but it doesn't. ``` ... %ie1 = insertelement <2 x i32> poison, i32 10, i64 0 %ie2 = insertelement <2 x i32> %ie1, i32 20, i64 1 %icmp = icmp <2 x i1> %ie2, <i32 40, i32 40> ... ``` This change adds InsertElementInst support in the LVI analysis pass to fix the motivating example.
Author
Parents
Loading