llvm-project/llvm/lib/Transforms
Philip Reames ea5c94b497 [IndVars] Fix a subtle bug in optimizeLoopExits
The original code failed to account for the fact that one exit can have a pointer exit count without all of them having pointer exit counts.  This could cause two separate bugs:
1) We might exit the loop early, and leave optimizations undone.  This is what triggered the assertion failure in the reported test case.
2) We might optimize one exit, then exit without indicating a change.  This could result in an analysis invalidaton bug if no other transform is done by the rest of indvars.

Note that the pointer exit counts are a really fragile concept.  They show up only when we have a pointer IV w/o a datalayout to provide their size.  It's really questionable to me whether the complexity implied is worth it.

llvm-svn: 366829
2019-07-23 17:45:11 +00:00
..
AggressiveInstCombine Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Coroutines Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
Hello Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IPO [Attributor][NFC] Re-run clang-format on the Attributor.cpp 2019-07-23 08:29:22 +00:00
InstCombine [NFC][PatternMatch] Refactor code into a proper "matcher for any integral constant" 2019-07-22 22:09:24 +00:00
Instrumentation Added address-space mangling for stack related intrinsics 2019-07-22 12:42:48 +00:00
ObjCARC [ObjC][ARC] Delete ObjC runtime calls on global variables annotated 2019-06-14 22:06:32 +00:00
Scalar [IndVars] Fix a subtle bug in optimizeLoopExits 2019-07-23 17:45:11 +00:00
Utils Fixing build error from commit 95cbc3d 2019-07-22 23:58:23 +00:00
Vectorize [SLPVectorizer] Revert local change that got accidently got committed in rL366799 2019-07-23 13:42:01 +00:00
CMakeLists.txt Another try to commit 323321 (aggressive instruction combine). 2018-01-25 12:06:32 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00