1. May 09, 2024
  2. May 02, 2024
  3. May 01, 2024
  4. Apr 30, 2024
  5. Apr 27, 2024
  6. Apr 26, 2024
    • Mirko Brkušanin's avatar
      [AMDGPU] Fix setting nontemporal in memory legalizer (#83815) · b544217f
      Mirko Brkušanin authored
      Iterator MI can advance in insertWait() but we need original instruction
      to set temporal hint. Just move it before handling volatile.
      b544217f
    • Björn Pettersson's avatar
      [DAGCombiner] Fix miscompile bug in combineShiftOfShiftedLogic (#89616) · 78b99c73
      Björn Pettersson authored
      Ensure that the sum of the shift amounts does not overflow the
      shift amount type when combining shifts in combineShiftOfShiftedLogic.
      
      Solves a miscompile bug found when testing the C23 BitInt feature.
      
      Targets like X86 that only use an i8 for shift amounts after
      legalization seems to be extra susceptible for bugs like this as it
      isn't legal to shift more than 255 steps.
      
      (cherry picked from commit f9b419b7)
      78b99c73
    • Bjorn Pettersson's avatar
      [DAGCombiner] Pre-commit test case for miscompile bug in combineShiftOfShiftedLogic · 1aa91720
      Bjorn Pettersson authored
      DAGCombiner is trying to fold shl over binops, and in the process
      combining it with another shl. However it needs to be more careful
      to ensure that the sum of the shift counts fits in the type used
      for the shift amount.
      For example, X86 is using i8 as shift amount type. So we need to
      make sure that the sum of the shift amounts isn't greater than 255.
      
      Fix will be applied in a later commit. This only pre-commits the
      test case to show that we currently get the wrong result.
      
      Bug was found when testing the C23 BitInt feature.
      
      (cherry picked from commit 5fd9bbde)
      1aa91720
  7. Apr 25, 2024
  8. Apr 24, 2024
  9. Apr 23, 2024