[llvm] 13207a2 - [NFC] Remove redundant setOperationAction.

Freddy Ye via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 22 19:28:58 PDT 2021


Author: Freddy Ye
Date: 2021-09-23T10:28:21+08:00
New Revision: 13207a21a64d3a0f1537cc99efe91d757d51f46c

URL: https://github.com/llvm/llvm-project/commit/13207a21a64d3a0f1537cc99efe91d757d51f46c
DIFF: https://github.com/llvm/llvm-project/commit/13207a21a64d3a0f1537cc99efe91d757d51f46c.diff

LOG: [NFC] Remove redundant setOperationAction.

[FROUND,FROUNDEVEN][f32, f64, f128] are set Expand twice.

Differential Revision: https://reviews.llvm.org/D110302

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetLoweringBase.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 983f833951f0..ba05552a9bb7 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -899,8 +899,6 @@ void TargetLoweringBase::initActions() {
     setOperationAction(ISD::FCEIL,      VT, Expand);
     setOperationAction(ISD::FRINT,      VT, Expand);
     setOperationAction(ISD::FTRUNC,     VT, Expand);
-    setOperationAction(ISD::FROUND,     VT, Expand);
-    setOperationAction(ISD::FROUNDEVEN, VT, Expand);
     setOperationAction(ISD::LROUND,     VT, Expand);
     setOperationAction(ISD::LLROUND,    VT, Expand);
     setOperationAction(ISD::LRINT,      VT, Expand);


        


More information about the llvm-commits mailing list