aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-01-25 12:49:51 +0000
committerFlorian Hahn <flo@fhahn.com>2024-01-25 12:49:52 +0000
commita04f6152914ea21f3068aaba9d8fc21d2e703d3e (patch)
tree7287fe0b8a43bc4cd4cd2faf41b414543ec6ffaa /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf4ed7f8d0a3830d05e53476fc64966e871bf9454 (diff)
downloadllvm-a04f6152914ea21f3068aaba9d8fc21d2e703d3e.zip
llvm-a04f6152914ea21f3068aaba9d8fc21d2e703d3e.tar.gz
llvm-a04f6152914ea21f3068aaba9d8fc21d2e703d3e.tar.bz2
[LV] Check for innermost loop instead of EnableVPlanNativePath in CM.
Replace EnableVPlanNativePath checks in the cost-model by assertions that the code is only called for innermost loops. This ensures that the cost model isn't used in the VPlanNativePath, which is only used for outer-loop vectorization. Even with EnableVPlanNativePath, inner loops are processed by the inner loop vectorization path, not the native path, so checking for EnableVPlanNativePath may impact decisions for inner loops and can cause crashes, like in the attached test case.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions