[all-commits] [llvm/llvm-project] 266ffd: [InstrProf] Fix warning about converting double to...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Tue Jun 6 12:38:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 266ffd7afff9f20e21a70fde06a164a2801bbf93
      https://github.com/llvm/llvm-project/commit/266ffd7afff9f20e21a70fde06a164a2801bbf93
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2023-06-06 (Tue, 06 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Support/BalancedPartitioning.h
    M llvm/lib/Support/BalancedPartitioning.cpp

  Log Message:
  -----------
  [InstrProf] Fix warning about converting double to float

In https://reviews.llvm.org/D147812 I introduced the class
`BalancedPartitioning` and it seemed to trigger a warning in flang

```
C:\Users\buildbot-worker\minipc-ryzen-win\flang-x86_64-windows\llvm-project\llvm\include\llvm/Support/BalancedPartitioning.h(89): warning C4305: 'initializing': truncation from 'double' to 'float'
```

For good measure, I converted all double literals to floats. This should
be a NFC.




More information about the All-commits mailing list