[PowerPC] Respect SDNodeFlags in lowering SELECT_CC
authorQiu Chaofan <qiucofan@cn.ibm.com>
Wed, 13 May 2020 06:03:38 +0000 (14:03 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Wed, 13 May 2020 06:05:47 +0000 (14:05 +0800)
commite9753822b5ad5e43e79f5970b5e86ceb329f8497
tree23a84c905f164d4610ff7d0739e0c77e79f02733
parent5440d0a12d7f6f7f7689a7a733de7cc622605270
[PowerPC] Respect SDNodeFlags in lowering SELECT_CC

Legalizer should respect both command-line options or SDNode-level
fast-math flags.

Also, this patch propagates other flags during custom simplifying.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D79074
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/scalar-equal.ll
llvm/test/CodeGen/PowerPC/scalar-min-max.ll
llvm/test/CodeGen/PowerPC/scalar_cmp.ll