search for: cse

Displaying 20 results from an estimated 1259 matches for "cse".

Did you mean: case
2018 Mar 23
1
stack dump at -early-cse-memssa twice
Hello, while invoking opt with all possible optimization pairs I stumbled over a stack dump when doing -early-cse-memssa twice: $ clang -Xclang -disable-O0-optnone -S -o fannkuch7.ll -emit-llvm fannkuch7.c $ opt -S -o fannkuch7.ll -early-cse-memssa -early-cse-memssa fannkuch7.ll Questions: Is it illegal to call -early-cse-memssa twice? Are there any other incompatible optimization orders? Best, HwJ -...
2016 Jun 10
4
Early CSE clobbering llvm.assume
As of llvm 3.8, the early CSE pass seems to remove llvm.assume intrinsics. Is this the expected behavior? I've attached as small-ish example of this happening in my production code. $ opt -early-cse before-early-cse.ll -S > after-early-cse.ll Note the use of the assume intrinsic indicating that the loaded value %c...
2014 Oct 14
4
[LLVMdev] RFC: Should we have (something like) -extra-vectorizer-passes in -O2?
...we need this other than the fact that we run instcombine after simplifycfg in a bunch of other places. If you're looking for one to rip out, this would be the first one I would rip out because I'm doubtful of its value. > > > On a separate note: > > > >> + early-cse > > Passes like loop-vectorize should be able to do their own CSE without much engineering effort. > > >> slp-vectorize > >> + early-cse > > SLP should do its own CSE. > > I actually agree with you in principle, but I would rather run the pass now (and av...
2014 Oct 14
7
[LLVMdev] RFC: Should we have (something like) -extra-vectorizer-passes in -O2?
...passes rather than this unless compile time is hurt too drastically. It makes it much easier to test, validate, and compose all of the various components of the core optimizer. >> >> Here is the structural diff: >> >> + loop-rotate >> loop-vectorize >> + early-cse >> + correlated-propagation >> + instcombine >> + licm >> + loop-unswitch >> + simplifycfg >> + instcombine >> slp-vectorize >> + early-cse >> > > I think a late loop optimization (vectorization) pipeline makes sense. I think we just ha...
2008 Aug 12
0
[LLVMdev] Ideas for representing vector gather/scatter and masks in LLVM IR
...avid Greene wrote: > >> Neither solution eliminates the need for instcombine to be careful and >> consult masks from time to time. >> >> Perhaps I'm totally missing something. Concrete examples would be helpful. > > Ok, so I took my own advice and thought about CSE and instcombine a bit. > I wrote the code by hand in a sort of pseudo-llvm language, so don't > crucify me for mistakes. :) > > CSE is an optimization that needs to pay attention to masks. You can't > (easily) CSE an expression with different masks. If you are using a valu...
2014 Apr 15
2
[LLVMdev] Proposal: AArch64/ARM64 merge from EuroLLVM
Hi Jiangning, On Apr 14, 2014, at 10:31 PM, Jiangning Liu <liujiangning1 at gmail.com> wrote: > Hi Jim, > > 2014-04-15 4:28 GMT+08:00 Jim Grosbach <grosbach at apple.com>: > This sounds reasonable. Thanks, all. > > > - CSE of ADRP optimization (Jiangning) > > Quentin may have some input here. He’s done quite a lot of optimizations for ADRP sequences. > > -Jim > > ​Thanks for letting me ​know Quentin may have deep thought around this. > > ​ARM64 generates pseudo instructions ARM64::MOVaddr...
2011 Jul 28
2
[LLVMdev] number of static paths
...ng the path information at run time and dynamically adding entries for the new path. But i need to know the number of static paths (total paths in a function ) whether they are executed or not. Please help me know that, can LLVM provide me with number of static paths or not. -- Gaurav Kumar MTech CSE IIT Kanpur +918960440344 http://www.cse.iitk.ac.in/users/gourav/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110729/364b3a0e/attachment.html>
2011 Sep 14
0
[LLVMdev] Handling of DebugLocs during CSE of SelectionDAG nodes.
On Sep 14, 2011, at 7:37 AM, Richard Osborne wrote: > Is there a view on which of the following approaches is better in > general when two nodes with debug locations are merged because of CSE > (either in the MachineCSE pass or because of the CSEMap in the > SelectionDAG): > > 1) Use the DebugLoc of either of the pair of nodes (chosen arbitrarily). > 2) Throw away the line number information on the merged node since it is > not possible to preserve the information...
2008 Aug 07
6
[LLVMdev] Ideas for representing vector gather/scatter and masks in LLVM IR
...esday 05 August 2008 13:27, David Greene wrote: > Neither solution eliminates the need for instcombine to be careful and > consult masks from time to time. > > Perhaps I'm totally missing something. Concrete examples would be helpful. Ok, so I took my own advice and thought about CSE and instcombine a bit. I wrote the code by hand in a sort of pseudo-llvm language, so don't crucify me for mistakes. :) CSE is an optimization that needs to pay attention to masks. You can't (easily) CSE an expression with different masks. Using a mask-per-operation setup, code might lo...
2004 Mar 31
3
help with the usage of "randomForest"
...rned the usage of randomForest from: http://www.maths.lth.se/help/R/.R/library/randomForest/html/randomForest.html Thanks a lot for any of your comments in advance! Hui Han Department of Computer Science and Engineering, The Pennsylvania State University University Park, PA,16802 email: hhan at cse.psu.edu homepage: http://www.cse.psu.edu/~hhan
2010 Nov 18
3
New Sampling question
I have another question about drawing samples from a data frame. This might sound really tricky. Let me use a data frame I have posted earlier as an example: SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4 1 6 5 6 2 6 2 2 4 2 6 4 7 2 6 6 2 3 3 5 5 5 5 5 5 4 5 4 5 4 3 4...
2011 Sep 14
1
[LLVMdev] Handling of DebugLocs during CSE of SelectionDAG nodes.
On Sep 14, 2011, at 10:34 AM, Jakob Stoklund Olesen wrote: > > On Sep 14, 2011, at 7:37 AM, Richard Osborne wrote: > >> Is there a view on which of the following approaches is better in >> general when two nodes with debug locations are merged because of CSE >> (either in the MachineCSE pass or because of the CSEMap in the >> SelectionDAG): >> >> 1) Use the DebugLoc of either of the pair of nodes (chosen arbitrarily). >> 2) Throw away the line number information on the merged node since it is >> not possible to p...
2011 Jul 28
0
[LLVMdev] number of static paths
...ng the path information at run time and dynamically adding entries for the new path. But i need to know the number of static paths (total paths in a function ) whether they are executed or not. Please help me know that, can LLVM provide me with number of static paths or not. -- Gaurav Kumar MTech CSE IIT Kanpur +918960440344 http://www.cse.iitk.ac.in/users/gourav/ -- Gaurav Kumar MTech CSE IIT Kanpur +918960440344 http://www.cse.iitk.ac.in/users/gourav/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/2...
2015 Nov 26
4
Creating/Deleting a new instruction from LLVM IR
...nippet in LLVM Programming manual, I couldn't understand it. Any examples on doing the same? ) I tried to delete an instruction using: i->eraseFromParent(); But it throws the following error/exception: *opt -load /home/mtech2/Documents/llvm/build/Debug+Asserts/lib/CSE.so -CSE <test.ll> /dev/null* *opt: /home/mtech2/Documents/llvm/llvm/include/llvm/Support/Casting.h:81: static bool llvm::isa_impl_cl<To, From*>::doit(const From*) [with To = llvm::Instruction; From = llvm::Instruction]: Assertion `Val && "isa<> used on a null pointer&...
2020 Aug 11
2
opt - replicating multiple passes from -O3 -debug-pass=Executions
...address these differences to enable replicating the -O3 first and second passes using opt flags? Thanks for considering this, -Chad (Opt -O3 first pass) Pass Arguments: -tti -tbaa -scoped-noalias -assumption-cache-tracker -targetlibinfo -verify -ee-instrument -simplifycfg -domtree -sroa -early-cse -lower-expect Target Transform Information Type-Based Alias Analysis Scoped NoAlias Alias Analysis Assumption Cache Tracker Target Library Information FunctionPass Manager Module Verifier Instrument function entry/exit with calls to e.g. mcount() (pre inlining) Simplify the CFG Do...
2011 May 07
2
[LLVMdev] Change the return type of a function
...hange the return type of a function in a Pass(in a module Pass). I dont want to change any of the arguments of that function. Assume that, I can handle the returning values properly inside the function. Please guide me how to do this ? -- Regards, Gokul Ramaswamy, Graduate Student, Department of CSE, IIT Bombay http://www.cse.iitb.ac.in/~ramaswamy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110508/6ae9e14f/attachment.html>
2007 Dec 19
1
Error: Not enough memory is available, and dom0 cannot be shrunk any further
Hi, I compiled the xen-3.2 unstableand have booted successfully into dom0. When I try to start a domU, it gives me an error: [root@xx xx]# xm create -c /etc/xen/fedora.fc6.cse Using config file "/etc/xen/fedora.fc6.cse" Error: Not enough memory is available, and dom0 cannot be shrunk any further xm list gives: Name ID Mem VCPUs State Time(s) Domain-0 0 932 1 r----- 94....
2014 Apr 11
2
[LLVMdev] llvm cse optimization
...e void @select_value(i8*, i32, i32, i8* nocapture readonly, i8* nocapture readonly, i8*, i32, i32, i32, i8*, i32, i32) #2 //select value will only write to the first parameter, other parameter is readonly For the above case, the second handle_value function call should be replaced with %call with cse or gvn optimization. Is anything I can do to optimize this case? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140411/3e2ceac3/attachment.html>
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity post=County.new(:name=>"myname",:description=>"mydesc") assert post.save end above is the method and when i run unit test it is saying as 1) Failure: test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]: <false> is not true. what does it say i cannot under stand please help -- Karthik.k Mobile -
2020 Jan 22
2
Inlining + CSE + restrict pointers == funtimes
Ok I think we have some common ground - CSE should choose the aliased pointer over the non-aliased one because we don't want the no-aliasing information to creep outwards from the inlined callsite. I'll put together a patch in the coming days and add y'all as reviewers so you get visibility. Cheers, -Neil. On Wed, Jan 22, 2020...