[PATCH] D16598: DAGCombiner: don't do (zext (trunc x)) -> (and x, 65535) if !hasOneUse(trunc x) and zext is free

escha via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 13:53:40 PST 2016

escha abandoned this revision.
escha added a comment.

ANDs can't turn back into truncs; trunc changes the width, AND doesn't; so I'm not *quite* sure what you mean. Either way, sounds like I need to reopen this with a (truncfree && zextfree) case, update the code to the latest revision, and find a test case.



More information about the llvm-commits mailing list