[PATCH] D90051: AMDGPU/GlobalISel: Add floating point med3 combine
    Petar Avramovic via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Dec  2 08:52:48 PST 2021
    
    
  
Petar.Avramovic added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp:192
+  Register Val;
+  Optional<FPValueAndVReg> K0, K1;
+  // Match min(max(Val, K0), K1) or max(min(Val, K1), K0). Then see if K0 <= K1.
----------------
arsenm wrote:
> I don't see why to make these optional if they won't be set or used if the matcher return false
Util helpers and matchers use Optional.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90051/new/
https://reviews.llvm.org/D90051
    
    
More information about the llvm-commits
mailing list