[llvm] 6a930e8 - 1: use class instead of MVT

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 23:54:54 PST 2023


Author: Chen Zheng
Date: 2023-01-05T07:53:59Z
New Revision: 6a930e889145cbfb3ff1d99f67a5382c19bc1745

URL: https://github.com/llvm/llvm-project/commit/6a930e889145cbfb3ff1d99f67a5382c19bc1745
DIFF: https://github.com/llvm/llvm-project/commit/6a930e889145cbfb3ff1d99f67a5382c19bc1745.diff

LOG: 1: use class instead of MVT
2: minor fix for the comments

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCInstrInfo.td
    llvm/test/CodeGen/PowerPC/GlobalISel/fcmp.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index ff21294ba846e..1551f3f32841b 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -3327,9 +3327,9 @@ def : Pat<(i64 (sext i1:$in)),
 // FIXME: We should choose either a zext or a sext based on other constants
 // already around.
 def : Pat<(i32 (anyext i1:$in)),
-          (SELECT_I4 i1:$in, (LI 1), (LI 0))>;
+          (SELECT_I4 crbitrc:$in, (LI 1), (LI 0))>;
 def : Pat<(i64 (anyext i1:$in)),
-          (SELECT_I8 i1:$in, (LI8 1), (LI8 0))>;
+          (SELECT_I8 crbitrc:$in, (LI8 1), (LI8 0))>;
 
 // match setcc on i1 variables.
 // CRANDC is:

diff  --git a/llvm/test/CodeGen/PowerPC/GlobalISel/fcmp.ll b/llvm/test/CodeGen/PowerPC/GlobalISel/fcmp.ll
index b1b092959e042..ff987491f88df 100644
--- a/llvm/test/CodeGen/PowerPC/GlobalISel/fcmp.ll
+++ b/llvm/test/CodeGen/PowerPC/GlobalISel/fcmp.ll
@@ -3,8 +3,8 @@
 ; RUN:   -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names < %s | FileCheck %s
 
 ;; Note that SETUEQ, SETOGE, SETOLE, SETONE, SETULT and SETUGT should be
-;; expanded by legalize for floating-point types f32 and f64, so there are no.
-;; patterns defined in PPCInstrInfo.td file for these setcc patterns.
+;; expanded by DAG legalizer for floating-point types f32 and f64, so there are
+;; no patterns defined in PPCInstrInfo.td file for these setcc patterns for now.
 
 define i1 @fcmp_false(float %a, float %b) {
 ; CHECK-LABEL: fcmp_false:


        


More information about the llvm-commits mailing list