llvm-project/llvm/lib/Transforms
Eli Friedman accc6b5545 LoadInst should store Align, not MaybeAlign.
The fact that loads and stores can have the alignment missing is a
constant source of confusion: code that usually works can break down in
rare cases.  So fix the LoadInst API so the alignment is never missing.

To reduce the number of changes required to make this work, IRBuilder
and certain LoadInst constructors will grab the module's datalayout and
compute the alignment automatically.  This is the same alignment
instcombine would eventually apply anyway; we're just doing it earlier.
There's a minor risk that the way we're retrieving the datalayout
could break out-of-tree code, but I don't think that's likely.

This is the last in a series of patches, so most of the necessary
changes have already been merged.

Differential Revision: https://reviews.llvm.org/D77454
2020-05-14 13:19:21 -07:00
..
AggressiveInstCombine [ConstantFolding] Always return something from ConstantFoldConstant 2020-03-04 18:24:47 +01:00
CFGuard Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Coroutines [NewPassManager] Add assertions when getting statefull cached analysis. 2020-05-13 12:38:38 -07: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] Improve the alignment of the loads 2020-05-13 18:24:05 -05:00
InstCombine LoadInst should store Align, not MaybeAlign. 2020-05-14 13:19:21 -07:00
Instrumentation [NewPassManager] Add assertions when getting statefull cached analysis. 2020-05-13 12:38:38 -07:00
ObjCARC [Pass] Ensure we don't include PassSupport.h or PassAnalysisSupport.h directly 2020-04-26 12:58:20 +01:00
Scalar LoadInst should store Align, not MaybeAlign. 2020-05-14 13:19:21 -07:00
Utils [NewPassManager] Add assertions when getting statefull cached analysis. 2020-05-13 12:38:38 -07:00
Vectorize [VPlan] Move emission of \\l\"+\n to dumpBasicBlock (NFC). 2020-05-14 13:07:59 +01:00
CMakeLists.txt Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
LLVMBuild.txt Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00