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: unassignedb...@nondot.org
Reporter: nikita....@gmail.com
CC: llvm-bugs@lists.llvm.org, spatel+l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs