Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
c8ef 43c6fb29a6 [InstCombine] Update the select operand when the cond is trunc and has the nuw or nsw property. (#105914)
This patch updates the select operand when the cond has the nuw or nsw
property. Considering the semantics of the nuw and nsw flag, if there is
no poison value in this expression, this code assumes that X can only be
0, 1 or -1.

close: #96765
alive2: https://alive2.llvm.org/ce/z/3n3n2Q
2024-08-24 19:56:59 +08:00

164 KiB