[PATCH] D96098: [X86] Don't pass a 1 to the secon argument of ISD::FP_ROUND in LowerFCOPYSIGN.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 5 10:11:35 PST 2021


craig.topper added a comment.

In D96098#2545540 <https://reviews.llvm.org/D96098#2545540>, @RKSimon wrote:

> LGTM but I'd be happier if you can add a test case

The use of that flag that I know of is to combine (fpext (fpround X, 1)) -> X if the type doesn't change. Since the FP_ROUND is being consumed by an expanded FCOPYSIGN after this, there won't be a fpext consuming it. Can you think of any other places it is used?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96098/new/

https://reviews.llvm.org/D96098



More information about the llvm-commits mailing list