Files
clang-p2996/llvm/test/Transforms/CorrelatedValuePropagation
Veera 5073b5fdfa [CVP] Infer nuw/nsw flags for TruncInst (#130504)
Proof: https://alive2.llvm.org/ce/z/U-G7yV

Helps: https://github.com/rust-lang/rust/issues/72646 and
https://github.com/rust-lang/rust/issues/122734

  Rust compiler's current output: https://godbolt.org/z/7E3fET6Md

IPSCCP can do this transform but it does not help the motivating issue
since it runs only once early in the optimization pipeline.

Reimplementing this in CVP folds the motivating issue into a simple
`icmp eq` instruction.
  
  Fixes #130100
2025-03-12 08:25:24 -04:00
..