[Analysis] propagate poison through integer min/max intrinsics
authorSanjay Patel <spatel@rotateright.com>
Tue, 15 Feb 2022 15:09:36 +0000 (10:09 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 15 Feb 2022 15:45:32 +0000 (10:45 -0500)
commit00218c188b75485ff1c9607c862e9f91663267a5
tree3caa852cb7491d0c62ce658737d53504c588c58a
parent765b5b810589fc0a1f2ed982b6b442648c79f470
[Analysis] propagate poison through integer min/max intrinsics

A more general enhancement needs to add tests and make sure
that intrinsics that return structs are correct. There are also
target-specific intrinsics, and I'm not sure what behavior is
expected for those.
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstSimplify/ConstProp/min-max.ll