llvm-project
dfcbf6c7 - [CVP] Stop CVP constant propagation from destroying `llvm.assume` (#183688)

Commit
57 days ago
[CVP] Stop CVP constant propagation from destroying `llvm.assume` (#183688) For following code sequence: ``` %cmp = icmp ugt i64 %idx, 1 tail call void @llvm.assume(i1 %cmp) ``` CVP may replace all use of `%cmp` with `true`, and the information about `%idx` is lost. This commit stop CVP from doing that, so that later pass can exploit the `llvm.assume`. Fixes https://github.com/llvm/llvm-project/issues/90206.
Author
Parents
Loading