[llvm] [SelectOpt] Add handling for not conditions. (PR #92517)

Sotiris Apostolakis via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 06:09:50 PDT 2024


================
@@ -153,14 +157,22 @@ class SelectOptimizeImpl {
     bool isValid() { return I; }
     operator bool() { return isValid(); }
 
+    /// Invert the select by inverting the condition and switching the operands.
+    void setInverted() {
+      assert(!Inverted && "Trying to invert and inverted SelectLike");
----------------
sapostolakis wrote:

invert and inverted --> invert an inverted

https://github.com/llvm/llvm-project/pull/92517


More information about the llvm-commits mailing list