[llvm] [InstCombine] Inverse is.fpclass mask operand, when profitable (PR #121378)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 22:44:46 PST 2024


https://github.com/dtcxzyw requested changes to this pull request.

This case should be handled in CodeGen instead of InstCombine.
Fortunately, there is a helper function called `invertFPClassTestIfSimpler` to improve the codegen of `TLI.expandIS_FPCLASS`. You can adjust this function and `expandIS_FPCLASS` to make the codegen better on x86 and aarch64 :) https://godbolt.org/z/vh8476ae3


https://github.com/llvm/llvm-project/pull/121378


More information about the llvm-commits mailing list