diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-01-30 04:42:39 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-01-30 04:42:39 +0000 |
| commit | 56600a15ad9a59db89c5b1cf5b8432019168379f (patch) | |
| tree | 01095dae473994fe3a01f03bfef81ecd6df6354c /llvm/include | |
| parent | a18f0fbca2c916136fb523dc56e931a851fbe1d6 (diff) | |
| download | bcm5719-llvm-56600a15ad9a59db89c5b1cf5b8432019168379f.tar.gz bcm5719-llvm-56600a15ad9a59db89c5b1cf5b8432019168379f.zip | |
Check alignment of loads when deciding whether it is safe to execute them
unconditionally. Besides checking the offset, also check that the underlying
object is aligned as much as the load itself.
llvm-svn: 94875
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Transforms/Utils/Local.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/Local.h b/llvm/include/llvm/Transforms/Utils/Local.h index 321151802bf..bb91d805893 100644 --- a/llvm/include/llvm/Transforms/Utils/Local.h +++ b/llvm/include/llvm/Transforms/Utils/Local.h @@ -39,7 +39,7 @@ template<typename T> class SmallVectorImpl; /// specified pointer, we do a quick local scan of the basic block containing /// ScanFrom, to determine if the address is already accessed. bool isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom, - const TargetData *TD = 0); + unsigned Align, const TargetData *TD = 0); //===----------------------------------------------------------------------===// // Local constant propagation. |

