[gcc r15-363] [prange] Fix thinko in prange::update_bitmask() [PR115026]

Aldy Hernandez aldyh@gcc.gnu.org
Fri May 10 14:57:40 GMT 2024


https://gcc.gnu.org/g:cbd420a1c3e2bb549dc83b53cc9a31aa6b23952c

commit r15-363-gcbd420a1c3e2bb549dc83b53cc9a31aa6b23952c
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri May 10 12:26:49 2024 +0200

    [prange] Fix thinko in prange::update_bitmask() [PR115026]
    
    gcc/ChangeLog:
    
            PR tree-optimization/115026
            * value-range.cc (prange::update_bitmask): Use operand bitmask.

Diff:
---
 gcc/value-range.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/value-range.cc b/gcc/value-range.cc
index 3e1ecf69517c..5bcb2c3f650b 100644
--- a/gcc/value-range.cc
+++ b/gcc/value-range.cc
@@ -686,7 +686,7 @@ prange::update_bitmask (const irange_bitmask &bm)
   // If all the bits are known, this is a singleton.
   if (bm.mask () == 0)
     {
-      set (type (), m_bitmask.value (), m_bitmask.value ());
+      set (type (), bm.value (), bm.value ());
       return;
     }


More information about the Gcc-cvs mailing list