[all-commits] [llvm/llvm-project] 9cecee: [VPlan] Silence gcc Wparentheses warning [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Sep 28 03:06:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cecee97a058794fa09a1fd8a0ff4a517c503a7d
      https://github.com/llvm/llvm-project/commit/9cecee97a058794fa09a1fd8a0ff4a517c503a7d
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

  Log Message:
  -----------
  [VPlan] Silence gcc Wparentheses warning [NFC]

Without the fix gcc warns about
../lib/Transforms/Vectorize/VPlanTransforms.cpp:968:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  968 |          UseActiveLaneMaskForControlFlow &&
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  969 |              "DataAndControlFlowWithoutRuntimeCheck implies "
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  970 |              "UseActiveLaneMaskForControlFlow");
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the All-commits mailing list