[all-commits] [llvm/llvm-project] 99bb78: [VPlan] Fix gcc -Wparentheses warning

Mikael Holmen via All-commits all-commits at lists.llvm.org
Thu Nov 6 06:04:32 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99bb7895fa8367eecee661ecc20932db00597461
      https://github.com/llvm/llvm-project/commit/99bb7895fa8367eecee661ecc20932db00597461
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2025-11-06 (Thu, 06 Nov 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h

  Log Message:
  -----------
  [VPlan] Fix gcc -Wparentheses warning

Wihtout this gcc complained with
 ../lib/Transforms/Vectorize/VPlan.h: In constructor 'llvm::VPWidenMemoryRecipe::VPWidenMemoryRecipe(unsigned char, llvm::Instruction&, std::initializer_list<llvm::VPValue*>, bool, bool, const llvm::VPIRMetadata&, llvm::DebugLoc)':
 ../lib/Transforms/Vectorize/VPlan.h:3216:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  3216 |            !Reverse &&
       |            ~~~~~~~~~^~
  3217 |                "Reversed acccess without VPVectorEndPointerRecipe address?");
       |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list