[InstCombine] trunc (fptoui|fptosi)
authorSamuel Parker <sam.parker@arm.com>
Tue, 24 Jan 2023 09:07:37 +0000 (09:07 +0000)
committerSamuel Parker <sam.parker@arm.com>
Tue, 24 Jan 2023 09:16:25 +0000 (09:16 +0000)
commitb1b7fb6f20b056a7eb5731a98485f9d541c7aabe
tree423cf55238624dfde8794c65a955924acbd637c2
parent975fe902b76c4be5c591022e780c853cfd3ea9d1
[InstCombine] trunc (fptoui|fptosi)

Attempt to fold the trunc into the fp-to-int conversion.

Differential Revision: https://reviews.llvm.org/D142093
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/trunc-fp-to-int.ll