OSDN Git Service

[InstCombine] add helper for known exact cast to FP; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 8 May 2020 18:40:04 +0000 (14:40 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 8 May 2020 19:22:36 +0000 (15:22 -0400)
commit5cf17034e53777ec1b1874fbbaf0b579634734fc
tree2e37e3b5939fd746ec7306022aeb8b6328a71038
parentafc8b49782f37524ccde82c54a9a2eb09a40f869
[InstCombine] add helper for known exact cast to FP; NFC

As suggested in D79116 - there's shared logic between the
existing code and potential new folds. This could go in
ValueTracking if it seems generally useful.
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp