Files
clang-p2996/llvm/test/Transforms/InstCombine
Craig Topper df76ff98e8 [InstCombine][LV] Fold (add (zext (add X, -1)), 1) -> (zext X) if X is non-zero.
This artifact can appear from the vectorizer. (add X, -1) is the
backedge taken count. It gets zero extended and then 1 is added to
it to get the trip count.

There is usually a dominating branch that rules out X being zero.

Alive: https://alive2.llvm.org/ce/z/NsRDwX
2023-01-30 17:45:01 -08:00
..
2022-12-15 12:03:47 -05:00
2022-08-24 22:41:38 +00:00
2022-12-15 12:03:47 -05:00
2022-12-15 12:03:47 -05:00
2022-12-15 12:03:47 -05:00
2022-12-15 12:03:47 -05:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.