search for: foldtwoentryphinodes

Displaying 3 results from an estimated 3 matches for "foldtwoentryphinodes".

Did you mean: foldtwoentryphinode
2020 Jul 22
2
Unlikely branches can have expensive contents hoisted
Hey all - me again, So I'm looking at llvm.expect specifically for branch hints. In the following example LLVM will hoist the pow/cos calls into the entry block even though I've used the llvm.expect intrinsic to make it clear that one of the calls is unlikely to occur. target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple =
2020 Feb 05
2
Eliminate some two entry PHI nodes - SimplifyCFG
...nice to opt these to > selects (cmovs). It would also be nice to have this opt prior to the rest > of SimplifyCFG as it might enable SimplifyCFG to do a better job of > simplifying by reducing the number of phis, etc... > > I don't see a significant problem in adding this to > FoldTwoEntryPhiNodes. The relevant changes would be isolated to the > initial loop over the phis, and would be somewhat parallel to the use > of simplifyInstruction. > > The main question is to how to make this conditional on a per-target > basis, i.e. how to properly define any relevant heuristics via &...
2020 Feb 03
2
Eliminate some two entry PHI nodes - SimplifyCFG
SimplifyCFG FoldTwoEntryPhiNode looks to simplify all 2 entry phi nodes in a block, if it can't do them all then it won't do any and returns. There is a lot of code that is directly in this function geared toward this requirement. Is it possible currently to get this function (or pass) to simply fold "some" of the phis (without having to fold them all?). I understand that