[llvm-bugs] [Bug 44574] New: [NewPM] SpeculativeExecutionPass is run on all targets
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 16 13:09:48 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44574
Bug ID: 44574
Summary: [NewPM] SpeculativeExecutionPass is run on all targets
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: nikita.ppv at gmail.com
CC: llvm-bugs at lists.llvm.org, spatel+llvm at rotateright.com
As pointed out by @spatel on https://reviews.llvm.org/D72861, with NewPM the
SpeculativeExecutionPass is executed on all targets, even if the target doesn't
have branch divergence.
New PM:
https://github.com/llvm/llvm-project/blob/53b68e676faf208b4a8f817e9bd4ddd522cc6006/llvm/lib/Passes/PassBuilder.cpp#L427
Legacy PM:
https://github.com/llvm/llvm-project/blob/53b68e676faf208b4a8f817e9bd4ddd522cc6006/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp#L342
As the new PM pass builder retains the comment that this is a nop on targets
without branch divergence, this is probably an oversight. The `false` parameter
to the pass constructor is missing.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200116/ce741338/attachment.html>
More information about the llvm-bugs
mailing list