[all-commits] [llvm/llvm-project] 75e22e: [MSAN] Inline getShadowTyNoVec into convertShadowT...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Mar 15 10:25:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75e22e8699eff6dd142bde6c56ecfef7abc0a0d3
      https://github.com/llvm/llvm-project/commit/75e22e8699eff6dd142bde6c56ecfef7abc0a0d3
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

  Log Message:
  -----------
  [MSAN] Inline getShadowTyNoVec into convertShadowToScalar [nfc]

This is an implementation detail of the flattening scheme, so hide it in the implementation thereof.  This does require one caller to go through the appropriate utility, but doing that makes the code cleaner anyways.


  Commit: e3dac9e93fa5ce04f2be2900c352592940cdeee9
      https://github.com/llvm/llvm-project/commit/e3dac9e93fa5ce04f2be2900c352592940cdeee9
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

  Log Message:
  -----------
  [MSAN] Replace another open-coded convertToBool instance [nfc]

Note that getCleanShadow always returns Constant::getNullValue so the prior code is equivalent to convertToBool.


Compare: https://github.com/llvm/llvm-project/compare/2281286eb7a1...e3dac9e93fa5


More information about the All-commits mailing list