[PATCH] D50714: [InstCombine] Fold Select with binary op - FP opcodes

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 19 08:42:01 PDT 2018


xbolva00 added a comment.

Ok, I create this IR manually + lli to interpret it
https://pastebin.com/MxdSFyTL

xbolva00 at xbolva00:~/opt$ lli fp.ll 5 6
noopt 2.000000
fpoeq 2.000000
fpueq 2.000000
noopt 2.000000
fpoeq 2.000000
fpueq 2.000000
noopt nan
fpoeq nan
fpueq 2.000000
noopt nan
fpoeq nan
fpueq nan

-------------------------------

So OEQ seems good.

Next steps:

1. Remove UEQ from optimization
2. Change tests + add nan tests (No idea yet how to do proper ones, small tip?)


https://reviews.llvm.org/D50714





More information about the llvm-commits mailing list